Branch: refs/heads/yves/regen_targets_and_optimizations
Home: https://github.com/Perl/perl5
Commit: 3f7001e0225dac5d96da42a90608312fbb040015
https://github.com/Perl/perl5/commit/3f7001e0225dac5d96da42a90608312fbb040015
Author: Yves Orton <[email protected]>
Date: 2026-09-15 (Tue, 15 Sep 2026)
Changed paths:
M Cross/Makefile-cross-SH
M Makefile.SH
M Porting/makemeta
M Porting/pumpkin.pod
M charclass_invlists.inc
M keywords.c
M keywords.h
M lib/unicore/uni_keywords.pl
M perly.act
M perly.h
M perly.tab
M regcharclass.h
M regen.pl
M regen/keywords.pl
M regen/mk_invlists.pl
M regen/regcharclass.pl
M regen/regen_lib.pl
M regen/tidy_embed.pl
M regen_perly.pl
M regexp_constants.h
M t/porting/regen.t
M uni_keywords.h
M vms/descrip_mms.template
M win32/GNUmakefile
M win32/Makefile
Log Message:
-----------
regen: unify full regeneration targets
Enhance regen_all and regen-all as the complete regeneration workflow across the
supported makefile variants. The workflow builds Perl, runs the standard
generators, regenerates keywords and Unicode data, updates distribution
metadata, and finishes with a final build. On *nix it includes regen_perly,
which is excluded on other platforms because it requires Bison.
Add individual targets and diagnostics for the keyword, inversion-list, and
character-class generators. Also adds regen_keywords which uses the installed
Perl because Devel::Tokenizer::C is not part of the build tree, additionally
the generator now reports how to install the missing dependency.
Adds and documents REGEN_VERBOSE alongside -v for regeneration scripts and
update the porting regeneration test with target-specific recovery commands.
Commit: 28e912959d3b0b81f3bc1a0ceed90b707b7a5470
https://github.com/Perl/perl5/commit/28e912959d3b0b81f3bc1a0ceed90b707b7a5470
Author: Yves Orton <[email protected]>
Date: 2026-09-15 (Tue, 15 Sep 2026)
Changed paths:
M charclass_invlists.inc
M lib/unicore/mktables
M lib/unicore/uni_keywords.pl
M regcharclass.h
M regen/mk_invlists.pl
M regen/mph.pl
M regexp_constants.h
M uni_keywords.h
M win32/GNUmakefile
M win32/Makefile
Log Message:
-----------
mktables: speed up table generation
Reduce the cost of the hot mktables paths by using direct reference addresses,
compact Range and Range_List objects, direct gap searches, and small lookup
caches. Keep the generated data unchanged apart from the generator updates
needed for the optimized path.
On the same full Unicode mktables workload, the measured run improved from
about 17.0 seconds and 208 MB peak RSS to 13.1 seconds and 173 MB peak RSS.
That is about 23 percent less wall time and 17 percent less peak memory. The
result varies slightly between runs.
For the mk_invlists-related Unicode generation, this full workload is the
relevant end-to-end measurement. The MPH squeeze benchmark improved from about
34.2 seconds with randomized squeeze to 9.1 seconds with frequency-weighted
two-direction squeeze. The blob grew from 9,132 to 9,212 bytes, an increase of
80 bytes or 0.88 percent. The mk_invlists changes preserve the generated data
while avoiding expansion of large ranges during native translation.
The generated Unicode and character-class outputs were regenerated with the
updated generators and syntax checks pass for the changed Perl programs.
Compare: https://github.com/Perl/perl5/compare/a32638592a5f...28e912959d3b
To unsubscribe from these emails, change your notification settings at
https://github.com/Perl/perl5/settings/notifications