[Bug 31602] New: Replace Try::Tiny with something faster
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31602 Bug ID: 31602 Summary: Replace Try::Tiny with something faster 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@lists.koha-community.org Reporter: kyle@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org This article shows Syntax::Keyword::Try being the fastest try/catch implementation for Perl: http://blogs.perl.org/users/diab_jerius/2017/04/how-fast-can-you-try.html It was written in 2017. I wonder if it's worth finding the current fastest try/catch implementation for Perl considering how we are widely and increasingly using try/catch blocks in Koha. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31602 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kyle@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31602 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tomascohen@gmail.com --- Comment #1 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Well, this is interesting! Thanks Kyle -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31602 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au --- Comment #2 from David Cook <dcook@prosentient.com.au> --- On https://metacpan.org/pod/Syntax::Keyword::Try, the author points out that try/catch/finally was (finally) added to Perl 5.34 (released May 20 2021) and that Feature::Compat::Try should be used for new code It looks like Perl 5.34 is used in Ubuntu from 22.04 onward. In Debian, it's in bookworm/testing. Although it looks like the "try" feature is still marked as experimental: https://perldoc.perl.org/feature#The-'try'-feature. Looks like Syntax::Keyword::Try has some issues with Perl older than 5.24 (https://metacpan.org/pod/Syntax::Keyword::Try#$@-is-not-local'ised-by-try-do-before-perl-5.24) but I don't think we support any OS that has a Perl that old. Syntax::Keyword::Try/Feature::Compat::Try sound pretty interesting. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org