This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Delay some initialization until needed
authorKarl Williamson <public@khwilliamson.com>
Sat, 7 Jul 2012 17:42:30 +0000 (11:42 -0600)
committerKarl Williamson <public@khwilliamson.com>
Wed, 25 Jul 2012 03:13:46 +0000 (21:13 -0600)
commit94d80c53d196e34cf8b3da0c4904fd9242945990
treede74572ba7dd0139b1e117e812be40476007a172
parentbd413dfc11564604b50a64c390ddca9c25ac50a5
regcomp.c: Delay some initialization until needed

This delays the initialization of the bitmap in ANYOF nodes until just
before it is needed, and to after where we make a decision to optimize
that node to a node which takes less space.  Currently, the space is
not given up, once reserved in pass 1, so the write is harmless.  This
will allow a future commit to shrink the space.
regcomp.c