This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Pack EXACTish nodes more fully
authorKarl Williamson <khw@cpan.org>
Sat, 3 Feb 2018 17:25:31 +0000 (10:25 -0700)
committerKarl Williamson <khw@cpan.org>
Sat, 3 Feb 2018 17:33:04 +0000 (10:33 -0700)
commit792b461851b63487dbcd63fc1948671db8f1dbe5
tree040e78be0a3749098394ec6fe8d273107c1f2276
parent9fc6ca9da4208eb58a2ad8169b81757082a52f85
regcomp.c: Pack EXACTish nodes more fully

Prior to this commit, nodes that are to match a string exactly, or
possibly case insensitively used only half the potential space available
(that being limited by the length field which is a U8).  (The optimizer
might later pack some together to make a larger node.)  Talking it over
with Yves, we suspect that this is a relic of an earlier time.  It makes
more sense to have longer nodes when possible to lower overhead in
the matching engine.
regcomp.c