Arjan van de Ven wrote: >On Sat, 2002-10-26 at 21:22, Manfred Spraul wrote: > > >>kmalloc spends a large part of the total execution time trying to find >>the cache for the passed in size. >> >> > >would it be possible for fixed size kmalloc's to have the compiler >precalculate this ? > > > > My patch is attached. Question to the preprocessor experts: is there a simpler way to achieve that? Right now the list of kmalloc caches exists in 3 copies, which could easily get out of sync. -- Manfred