Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: bc1f0aee31c0ae9ee61e22a407b6fa0d063a7906
https://github.com/Perl/perl5/commit/bc1f0aee31c0ae9ee61e22a407b6fa0d063a7906
Author: Richard Leach <[email protected]>
Date: 2026-02-12 (Thu, 12 Feb 2026)
Changed paths:
M regcomp_invlist.c
Log Message:
-----------
S_invlist_trim - don't SvPV_renew where no change is likely
Currently, `S_invlist_trim` always calls `SvPV_renew(invlist, <size>)`,
which is a macro wrapping a call to `safesysrealloc()`.
However, `SvLEN(invlist)` is often already exactly the desired size, or
it is larger by less than the size of a pointer. With this commit, the
new `expected_size` macro is used to reduce the number of cases in which
S_invlist_trim will try to shrink a buffer but no shrinkage is likely to
occur. (For example, if the desired size is less than the minimum actual
allocation size.)
Commit: ce0ac1ec9428f9d64c991c2b5bba0584af1a61b2
https://github.com/Perl/perl5/commit/ce0ac1ec9428f9d64c991c2b5bba0584af1a61b2
Author: Richard Leach <[email protected]>
Date: 2026-02-12 (Thu, 12 Feb 2026)
Changed paths:
M regcomp_invlist.c
Log Message:
-----------
TO SQUASH - add a fudge factor
Compare: https://github.com/Perl/perl5/compare/0595bf7365bd...ce0ac1ec9428
To unsubscribe from these emails, change your notification settings at
https://github.com/Perl/perl5/settings/notifications