]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Some improvements for malloc/free intensive programs, inspired by
authorJulian Seward <jseward@acm.org>
Mon, 20 Aug 2007 22:57:56 +0000 (22:57 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 20 Aug 2007 22:57:56 +0000 (22:57 +0000)
commit0f312746f19541fbf958743c809f9467f7d2a573
treeaf288b835a53306487a3e39af71453a6e07c9336
parente916eeef5bd4ddfd7f066337c5458fb1b4989e69
Some improvements for malloc/free intensive programs, inspired by
performance studies by Christoph Bartoschek:

* Increase the number of freelists per arena from 18 to 112, so as
  to (drastically) cut down on the amount of freelist searching that
  happens.

* Increase the size of the client and tool arenas, so as to reduce
  the cost of finding arenas during freeing.  This is a kludge; a
  better solution would be to use binary search on superblocks, as
  Christoph's patches do.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6770
coregrind/m_mallocfree.c