[Koha-bugs] [Bug 30269] Use objects directly to display holds on request.pl
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Mar 10 15:31:33 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30269
--- Comment #2 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 131559
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=131559&action=edit
Perf check
This compared the time for using accessor versus subroutines for checking
transit, waiting, etc.
accessor were faster in both cases, but more drastically so in case of a found
hold
Unfound hold:
Rate objectMethodAtD objectMethodIsW objectMethodIsF
objectAccessorW objectAccessorF
objectMethodAtD 546/s -- -1% -5%
-6% -8%
objectMethodIsW 553/s 1% -- -4%
-5% -7%
objectMethodIsF 576/s 6% 4% --
-1% -3%
objectAccessorW 579/s 6% 5% 1%
-- -3%
objectAccessorF 596/s 9% 8% 3%
3% --
Found hold:
Rate objectMethodIsF objectMethodAtD objectMethodIsW
objectAccessorW objectAccessorF
objectMethodIsF 183/s -- -63% -65%
-67% -68%
objectMethodAtD 500/s 173% -- -3%
-9% -12%
objectMethodIsW 516/s 182% 3% --
-7% -10%
objectAccessorW 552/s 201% 10% 7%
-- -3%
objectAccessorF 572/s 212% 14% 11%
4% --
--
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