Branch: refs/heads/yves/regen_targets_and_optimizations
Home: https://github.com/Perl/perl5
Commit: 1927d45a2787ae401b9b32987a523e090faa446c
https://github.com/Perl/perl5/commit/1927d45a2787ae401b9b32987a523e090faa446c
Author: Yves Orton <[email protected]>
Date: 2026-09-16 (Wed, 16 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.
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 (necessarily) regenerated
with the updated generators.
To unsubscribe from these emails, change your notification settings at
https://github.com/Perl/perl5/settings/notifications