git: libc - nmalloc clean part 2

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Nov 24 09:03:39 PST 2019


commit 369c9b6ca801f3b4ba739e0527a5de34bb51e9d8
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Nov 23 22:22:30 2019 -0800

    libc - nmalloc clean part 2
    
    * Clean up a lot of unused #define's and other constants.
    
    * Increase the maximum capacity of a magazine to roughly
      512 (M_MAX_ROUNDS).  Continue to use a fixed structure.
    
    * Set the magazine capacity dynamically based on the allocation
      size.  Magazines for smaller allocations have larger capacities.
      This should improve performance for tiny allocations.

Summary of changes:
 lib/libc/stdlib/nmalloc.c | 162 +++++++++++++++++++---------------------------
 1 file changed, 67 insertions(+), 95 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/369c9b6ca801f3b4ba739e0527a5de34bb51e9d8


-- 
DragonFly BSD source repository



More information about the Commits mailing list