This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Reverse order of setting, for speed
authorKarl Williamson <public@khwilliamson.com>
Mon, 9 Jul 2012 22:17:40 +0000 (16:17 -0600)
committerKarl Williamson <public@khwilliamson.com>
Wed, 25 Jul 2012 03:13:48 +0000 (21:13 -0600)
commit7c23e637d7deda34ad67ab6e8cb89a143044dfa6
tree8e95a013289675c4f8e20f2627feeae13c9d9351
parent5d63e270c7517cfe712f86e624bb138fd37fcd69
regcomp.c: Reverse order of setting, for speed

It's faster to append to an inversion list than to insert into the
middle.  The previous order of doing things guaranteed that the 2nd
thing done would be an insertion, hence slower than an append.  Now we
add the lowest ordinal character first, so there is a chance that both
will be appends
regcomp.c