[Koha-bugs] [Bug 35250] New: Eliminate circular dependencies caused by C4::Context
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Nov 3 16:22:34 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35250
Bug ID: 35250
Summary: Eliminate circular dependencies caused by C4::Context
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: koha-bugs at lists.koha-community.org
Reporter: philippe.blouin at inlibro.com
QA Contact: testopia at bugs.koha-community.org
Any script using C4::Context is bound to have a huge memory footprint because
of the dependencies. And even script that would do without C4::Context
(somehow) are bound for the same as soon as they include one Koha:: module,
because those will use C4::Context.
A graph from v23.05 will summarize it better than any explanation:
BackgroundJobs
|
v
BackgroundJob (Net::Stomp : 5M)
| |
| v
| Koha::Object (Mojo::JSON : 16M)
v
C4::Context (DateTime::TimeZone : 7M)
| | (ZOOM : 8M)
v |
Koha::Config::Syspref
| |
v |
C4::Log (calling back on C4::Context)
| |
v |
Koha::ActionLogs
| |
v |
Koha::ActionLog (calling back on C4::Context)
| |
v |
Koha::Object
|
|
v
Koha::Caches (calling back on C4::Context)
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list