]> git.llucax.com Git - software/dgc/cdgc.git/commit
Minimize the use of findPool()
authorLeandro Lucarella <llucax@gmail.com>
Sun, 1 Aug 2010 18:09:14 +0000 (15:09 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Sun, 1 Aug 2010 18:09:14 +0000 (15:09 -0300)
commitb802e8fe709f22ad56f8a43bc9675c114c2fc21f
treecac70332a02a421765f7a499af6203aa6d4a9790
parentf9b8f3cb780edcdceda2027e96f69a2244c9cc29
Minimize the use of findPool()

findPool() is one of the most used functions in the GC, usually taking 15%
of the GC time. This patch minimizes it use by converting the functions
findBase() and findSize() to Pool methods, avoiding calling findPool()
twice (in most cases, when calling findBase() or findSize() we already
know the pool).
rt/gc/cdgc/gc.d