Branch: refs/heads/davem/slc_countdown
  Home:   https://github.com/Perl/perl5
  Commit: d4c8e641e5510fa4d183b1601d9ade0d60fe77e7
      
https://github.com/Perl/perl5/commit/d4c8e641e5510fa4d183b1601d9ade0d60fe77e7
  Author: David Mitchell <[email protected]>
  Date:   2026-09-08 (Tue, 08 Sep 2026)

  Changed paths:
    M embedvar.h
    M intrpvar.h
    M regexec.c
    M sv.c

  Log Message:
  -----------
  Add PL_re_superlinear_cache_delay variable

This per-interpreter integer-valued variable adjusts the initial
countdown before the regex engine's super-linear cache kicks in for a
particular match.

Normally the countdown is equal to (string length) times (number of
candidate WHILEM nodes in pattern), but this variable allows it to be
adjusted for testing and debugging purposes.

The next few commits will allow this variable's value to be set from
user-land and also document its allowed values.


  Commit: cf996b5b09f667326052f724c4f05ff6be2ea408
      
https://github.com/Perl/perl5/commit/cf996b5b09f667326052f724c4f05ff6be2ea408
  Author: David Mitchell <[email protected]>
  Date:   2026-09-08 (Tue, 08 Sep 2026)

  Changed paths:
    M charclass_invlists.inc
    M l1_char_class_tab.h
    M lib/unicore/uni_keywords.pl
    M regen/mk_PL_charclass.pl
    M regexp_constants.h
    M uni_keywords.h

  Log Message:
  -----------
  allow magic global vars to start with ${^R...}

There are currently no magic global variables of the form ${^R...}.
(i.e. variables which when created for the first time, need to have
the appropriate magic automatically attached).

This commit adds \cR to the list of known magic chars in
regen/mk_PL_charclass.pl and regens the related files, in preparation
for the next commit, which will add such a variable.


  Commit: 6af0a33e769948cd1b25ee3edcc7b8812465e101
      
https://github.com/Perl/perl5/commit/6af0a33e769948cd1b25ee3edcc7b8812465e101
  Author: David Mitchell <[email protected]>
  Date:   2026-09-08 (Tue, 08 Sep 2026)

  Changed paths:
    M gv.c
    M intrpvar.h
    M mg.c
    M pod/perlvar.pod
    M t/perf/benchmarks

  Log Message:
  -----------
  add ${^RE_SUPERLINEAR_CACHE_DELAY}

Add a new magic global variable, ${^RE_SUPERLINEAR_CACHE_DELAY},
which is a perl-level interface to the interpreter variable
PL_re_superlinear_cache_delay, which was added a couple of commits ago.

This integer-valued variable allows perl code to adjust the initial
countdown before the regex engine's super-linear cache kicks in for a
particular match.

Normally the countdown is equal to (string length) times (number of
candidate WHILEM nodes in pattern), but this variable allows it to be
adjusted for testing and debugging purposes. It is only intended for
use in core and so text added to perlvar.pod reflects that.

Due to no current global magic vars starting with ^R, the previous commit
added \cR to the list of known magic chars in preparation.


  Commit: 0a6662e57d63616f062bb3a4ddb1d4a6559a4823
      
https://github.com/Perl/perl5/commit/0a6662e57d63616f062bb3a4ddb1d4a6559a4823
  Author: David Mitchell <[email protected]>
  Date:   2026-09-08 (Tue, 08 Sep 2026)

  Changed paths:
    M INSTALL
    M perl.c
    M pod/perlrun.pod

  Log Message:
  -----------
  Support $PERL_RE_SUPERLINEAR_CACHE_DELAY env var

Allow the just-added ${^RE_SUPERLINEAR_CACHE_DELAY} perl variable
to be set at startup by this new environment variable.

Since ${^RE_SUPERLINEAR_CACHE_DELAY} will be necessary for tests etc,
its is provided as part of a standard perl build. On the other hand,
this environment variable seems to have less general use, and so I
haven't enabled it as part of a standard perl build. Instead it has to
be requested specially via

  -Accflags='-DPERL_RE_SUPERLINEAR_CACHE_DELAY'


  Commit: 61a54b7925b6aee8a827945d1abd7ce070bf333f
      
https://github.com/Perl/perl5/commit/61a54b7925b6aee8a827945d1abd7ce070bf333f
  Author: David Mitchell <[email protected]>
  Date:   2026-09-08 (Tue, 08 Sep 2026)

  Changed paths:
    M pod/perlreguts.pod

  Log Message:
  -----------
  update perlreguts.pod with new cache delay options

An paragraph for PL_re_superlinear_cache_delay etc.


Compare: https://github.com/Perl/perl5/compare/acad20d1e69b...61a54b7925b6

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

Reply via email to