[Koha-bugs] [Bug 28173] Add plugin hooks object_store_pre and object_store_post

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 20 10:35:46 CET 2024


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

--- Comment #14 from Julian Maurice <julian.maurice at biblibre.com> ---
I ran the attached benchmark script in 3 different scenario:
1) master (c6fa96eeca)
2) with the patch, with 2 plugins, 1 enabled but without the object_store_*
hooks, 1 with both hooks but disabled. 
3) same as 2, but with both plugins enabled

The code inside object_store_* hooks was very simple (1 call to $object->_type
and 1 call to $object->make_column_dirty)

1) The time per `store` call is between 91µs and 104µs
2) The time per `store` call is between 98µs and 110µs
3) The time per `store` call is between 104µs and 115µs

There is a noticeable slowdown, which is expected.
I think 10µs per call is negligible if we only have a few store calls per http
request, but I don't know how many store calls we have on a typical request.
Does anyone know ?

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


More information about the Koha-bugs mailing list