https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16044
--- Comment #23 from Jacek Ablewicz <a...@biblos.pk.edu.pl> --- (In reply to Jacek Ablewicz from comment #21) > We'll need to send 'frozen' scalar to memcached somehow packaged (e.g. in [ > ]), to be able to distinguish if it was originally a scalar or not. And the > complex structures in L2 cache will be double-frozen. But the 2nd freeze > call (inside Memcached::Fast) should be very cheap - at that stage, this > wouldn't be a complex data structure any more. Unless I'm very much mistaken > (see comment #20 item 3) a side effect of this will be a performance gain - > after this bug, fetching MARC framework with get_from_cache() will take 10 > ms instead of 12.5 ms on average, even with Koha::Cache used entirely in the > "safe" mode. Win-win situation ;). Or just append some small flag to the end of each string we store in L2 and strip it on fetching (0: scalar, 1: structure frozen by Storable() freeze, 2: structure frozen by Sereal, 4: undef value etc. ;) - I don't think it will affect performance of caching very small values in any measurable way, and all that double-frozen madness could be scrached then. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org 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/