Branch: refs/heads/davem/slc_countdown
  Home:   https://github.com/Perl/perl5
  Commit: 47fc4be2e2a84581a2fe5d7f0e1d6da2b677a940
      
https://github.com/Perl/perl5/commit/47fc4be2e2a84581a2fe5d7f0e1d6da2b677a940
  Author: David Mitchell <[email protected]>
  Date:   2026-09-05 (Sat, 05 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: bd16d905d6ecaf4feae6a85f9624fc0dafdb1ebd
      
https://github.com/Perl/perl5/commit/bd16d905d6ecaf4feae6a85f9624fc0dafdb1ebd
  Author: David Mitchell <[email protected]>
  Date:   2026-09-05 (Sat, 05 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: d2dac3e0e02a6d805cb1946dddb4bcdc0e43b020
      
https://github.com/Perl/perl5/commit/d2dac3e0e02a6d805cb1946dddb4bcdc0e43b020
  Author: David Mitchell <[email protected]>
  Date:   2026-09-05 (Sat, 05 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: 69bf0f241a9dc2328c2c641ba9a51d5cef5ce44d
      
https://github.com/Perl/perl5/commit/69bf0f241a9dc2328c2c641ba9a51d5cef5ce44d
  Author: David Mitchell <[email protected]>
  Date:   2026-09-05 (Sat, 05 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'


Compare: https://github.com/Perl/perl5/compare/47fc4be2e2a8%5E...69bf0f241a9d

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

Reply via email to