https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34088 --- Comment #42 from Julian Maurice <julian.maurice@biblibre.com> --- (In reply to Julian Maurice from comment #41)
IIUC the needs_update call is in a BEGIN block to avoid loading all modules if no update is needed. What about 'require'-ing the slow modules instead, so we can move the needs_update call out of the BEGIN block without losing performance ?
Nevermind, we'd lose performance anyway (from 36ms to 200ms for me), probably because Perl has to parse the whole file. Another idea, Joubu's idea but reversed: keep only the needs_update call in updatedatabase.pl and move the rest in a new file, updatedatabase.pl would call/eval/do this new file. That way we don't need to update all scripts that rely on updatedatabase.pl -- You are receiving this mail because: You are watching all bug changes.