Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Mar 2006 20:25:52 +0000 (UTC)
From:      Jason Evans <jasone@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/stdlib malloc.c
Message-ID:  <200603302025.k2UKPqs8072476@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jasone      2006-03-30 20:25:52 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/stdlib      malloc.c 
  Log:
  Optimize runtime performance, primary using the following techniques:
  
    * Avoid choosing an arena until it's certain that an arena is needed
      for allocation.
  
    * Convert division/multiplication to bitshifting where possible.
  
    * Avoid accessing TLS variables in single-threaded code.
  
    * Reduce the amount of pointer dereferencing.
  
    * Move lock acquisition in critical paths to only protect the the code
      that requires synchronization, and completely remove locking where
      possible.
  
  Revision  Changes    Path
  1.120     +294 -285  src/lib/libc/stdlib/malloc.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603302025.k2UKPqs8072476>