summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht/src
diff options
context:
space:
mode:
authorMohit Agrawal <moagrawa@redhat.com>2020-07-25 11:28:43 +0530
committerMOHIT AGRAWAL <moagrawa@redhat.com>2020-07-31 06:06:03 +0000
commitdbff4ecfc18d4d4ad357e2f53806a6caf69d2b65 (patch)
tree41c18e03c3950474e82cf3f3597cdf044d6f7165 /xlators/cluster/dht/src
parent3204091c850a92f492c8f89099c1ecebb502d01f (diff)
dict: optimize dict_serialized_length_lk function
To return the length of searlized dictionary the function iterates full dictionary and access every key value member of the dictionary.Instead of iterating full dictionary introduce a variable totkvlen at dictionary to save the key value length at the time of storing key/value pair in the dictionary. Change-Id: Ie8cfdea1cc335bce51f59179281df3c89afab68b Fixes: #1395 Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
Diffstat (limited to 'xlators/cluster/dht/src')
0 files changed, 0 insertions, 0 deletions