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

--- Comment #1 from Jacek Ablewicz <[email protected]> ---
Created attachment 49670
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=49670&action=edit
Bug 16166: Improve L1 cache performance

Bug 16044 introduced two-level caching mechanism to Koha::Cache. By
default, get_from_cache() returns a deep copy of the data structures
stored in L1 cache (aka "safe mode"). For extremely big and/or complex
data structures (like MARC framework hash-of-hashes-of-hashes returned
by GetMarcStructure() ), deep-cloning is currently very sub-optimal
(i.e., 2-3x slower after Bug 16044); this patch addresses that particular
issue.

See also: Bug 16044 comments #18 - #23

Test plan:

1) apply patch
2) flush L2 cache if necessary (restart memcached daemon)
3) profile GetMarcStructure() calls before / after patch, e.g. by
running some script which calls it often (like catalogue search
w/ XSLT processing turned on, etc.)
4) after Bug 16044 + Bug 16166, GetMarcStructure() should be faster than
before, in all possible circumstances

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to