[Koha-bugs] [Bug 16044] Define a L1 cache for all objects set in cache

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 17 11:23:10 CET 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16044

--- Comment #18 from Jacek Ablewicz <abl at biblos.pk.edu.pl> ---
For some reason, deep copying of MARC frameworks structures with clone() is
insanely slow:

- clone() from the Clone module: 62 ms !!!
- clone() from Clone::Fast: 21 ms
- Storable dclone(): 16.9 ms
- Storable thaw(freeze()): 17.0 ms
- fetching framework from DB directly (caching disabled in GetMarcStructure()):
36.6 ms

If I replace clone() with Storable dclone() in Koha::Cache, search speed is
back to normal. Well, almost - looks like fetching the framework directly from
L2 cache is still faster (12.8 ms, L2 = memcache) then getting a clone from L1
cache.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list