Bug 827448 - Add small-dict optimization
Summary: Add small-dict optimization
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: core
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Jeff Darcy
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-01 13:58 UTC by Jeff Darcy
Modified: 2015-12-01 16:45 UTC (History)
2 users (show)

Fixed In Version: glusterfs-3.4.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-24 17:38:14 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Jeff Darcy 2012-06-01 13:58:39 UTC
Dicts are being used more and more in our I/O path (e.g. for xdata) so performance is a significant concern and our current implementation allocates data_pair structures separately from the dict itself.  Since many dicts are used to hold a very small number of items - often just one - we can optimize by allocating the first data_pair as part of the dict structure.

Comment 1 Amar Tumballi 2012-08-05 18:48:31 UTC
http://review.gluster.com/3040 is commited to master branch


Note You need to log in before you can comment on or make changes to this bug.