[Koha-bugs] [Bug 35250] Eliminate circular dependencies caused by C4::Context

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Dec 12 14:18:25 CET 2023


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

Salah Ghedda <salah.ghedda at inlibro.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #158361|0                           |1
        is obsolete|                            |

--- Comment #6 from Salah Ghedda <salah.ghedda at inlibro.com> ---
Created attachment 159735
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=159735&action=edit
Bug 35250: Use lazy loading to reduce memory footprint of C4/Context.pm

This simply removes some 'use' declarations at the top of the file to
instead use 'require' later on.

The effect can be validated with a simple one-liner (provided KOHA_CONF
and PERL5LIB being set)

perl -e "use C4::Context; while(1){sleep(1);}"

And monitoring the memoring usage in tools like 'top'

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


More information about the Koha-bugs mailing list