git-commit-vandalism/perl
Ævar Arnfjörð Bjarmason 5a544a4e11 perl: lazily load some common Git.pm setup code
Instead of unconditionally requiring modules such as File::Spec, let's
only load them when needed. This speeds up code that only needs a
subset of the features Git.pm provides.

This brings a plain invocation of "git send-email" down from 52/37
loaded modules under NO_GETTEXT=[|Y] to 39/18, and it now takes
~60-~70ms instead of ~80-~90ms. The runtime of t9001-send-email.sh
test is down to ~13s from ~15s.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2021-05-28 18:38:07 +09:00
..
FromCPAN perl: check for perl warnings while running tests 2020-10-21 23:11:48 -07:00
Git perl: use mock i18n functions under NO_GETTEXT=Y 2021-05-06 12:58:33 +09:00
header_templates Makefile: add Perl runtime prefix support 2018-04-11 18:09:56 +09:00
.gitignore Makefile: replace perl/Makefile.PL with simple make rules 2017-12-11 15:28:10 -08:00
Git.pm perl: lazily load some common Git.pm setup code 2021-05-28 18:38:07 +09:00