diff options
author | Yaniv Kaul <ykaul@redhat.com> | 2018-08-21 23:36:28 +0300 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-09-07 03:41:32 +0000 |
commit | f6a7f6e8124327509559170faa9a4dce6fad9731 (patch) | |
tree | f11d79293b0c77ea38a4b5cbd6ea411b9eb96e50 /xlators/mgmt/glusterd | |
parent | 50e8b0c335ba4f18987a32e8268ee31498323beb (diff) |
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@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd')
0 files changed, 0 insertions, 0 deletions