[Bugs] [Bug 1193929] GlusterFS can be improved

bugzilla at redhat.com bugzilla at redhat.com
Wed Aug 22 13:32:34 UTC 2018


--- Comment #215 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/20879 committed in master by "Niels de Vos"
<ndevos at redhat.com> with a commit message-
libglusterfs/src/quota-common-utils.c:move to GF_MALLOC() instead of
GF_CALLOC() when

It doesn't make sense to calloc (allocate and clear) memory
when the code right away fills that memory with data.
It may be optimized by the compiler, or have a microscopic
performance improvement.

Please review carefully, especially for string allocation, with the
terminating NULL string.

Only compile-tested!

Change-Id: Ie2a634d768904636160582189a5f0390668b37bb
updates: bz#1193929
Signed-off-by: Yaniv Kaul <ykaul at redhat.com>

You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

More information about the Bugs mailing list