Pretty nice, applied. thanks! On Tue, May 15, 2012 at 5:57 AM, Lauri Kasanen <[email protected]> wrote: > Hi > > utime2gmt uses surprisingly much cpu, almost 10% according to gprof. It's > fairly optimized, but it's called often with the same arguments. > So let's add a cache for it. > > In the worst case (no cache hit ever), the overhead for utime2gmt is little > less than 1%. > In the best case (cache hits always), drops utime2gmt cpu usage from 9.6% to > 1.2%. > > Helps in mixed usage, since often accessed pages like the index page stay in > the cache. > > - Lauri > > _______________________________________________ > Monkey mailing list > [email protected] > http://lists.monkey-project.com/listinfo/monkey >
-- Eduardo Silva http://edsiper.linuxchile.cl http://www.monkey-project.com _______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
