Branch: refs/heads/yves/regen_targets_and_optimizations
  Home:   https://github.com/Perl/perl5
  Commit: 228c9b43a2600f819e88981084539cc9cd8d948b
      
https://github.com/Perl/perl5/commit/228c9b43a2600f819e88981084539cc9cd8d948b
  Author: Yves Orton <[email protected]>
  Date:   2026-09-19 (Sat, 19 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: 24f5bf165ec73ee7c5ce680f7e073586a97dec29
      
https://github.com/Perl/perl5/commit/24f5bf165ec73ee7c5ce680f7e073586a97dec29
  Author: Yves Orton <[email protected]>
  Date:   2026-09-19 (Sat, 19 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.


Compare: https://github.com/Perl/perl5/compare/1927d45a2787...24f5bf165ec7

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications

Reply via email to