[Bugs] [Bug 1193929] GlusterFS can be improved

bugzilla at redhat.com bugzilla at redhat.com
Fri Sep 7 03:42:10 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1193929



--- Comment #328 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/20882 committed in master by "Amar Tumballi"
<amarts at redhat.com> with a commit message- xlators/cluster/dht/src/dht-common.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 (added another byte to ensure it's there).

Only compile-tested!

Change-Id: Ia5e4f50dfb0c29809c2019fcfd8079507813249e
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