[Koha-bugs] [Bug 28416] Email::Sender::Transport::SMTP is using 10Mo of RAM

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 22 16:33:46 CET 2022


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

--- Comment #7 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Jonathan Druart from comment #2)
> Can be tested with
> 
> use Memory::Usage;
> my $mu = Memory::Usage->new();
> $mu->record('Loading');
> require Koha::Libraries;
> $mu->record('module loaded');
> print $mu->report();
> 
> I don't think overall it's a good idea to use require, but maybe it's worth
> here?

I tried moving the 'require' to the Koha::Library namespace. As we will
probably load the Koha::SMTP::Server object only when we want the transport
anyway. But it didn't help :-D

So signing this patch as it is correct passes the QA tests and does the job.
For testers:

$ apt install libmemory-usage-perl

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


More information about the Koha-bugs mailing list