[Koha-patches] [PATCH] Performance enhancemnent.

Galen Charlton gmcharlt at gmail.com
Sat Aug 8 14:12:10 CEST 2009


Hi,

2009/8/8 Joe Atzberger <joe.atzberger at liblime.com>:
> Yes, though this convention is established already in the module with
> $marc_structure_cache.  You could convert both to Memoize.

If you're looking for conventions, Memoize is already used in
C4::Koha, so let's run with that.  Hand-writing memoization should be
necessary only when there's a significant performance benefit to
pre-computing and caching the function's entire range in one fell
swoop rather than letting Memoize build up its cache as the function
gets called.

Regards,

Galen
-- 
Galen Charlton
gmcharlt at gmail.com



More information about the Koha-patches mailing list