regcomp.c: Use less peak memory
authorKarl Williamson <khw@cpan.org>
Sat, 27 Feb 2016 22:07:09 +0000 (15:07 -0700)
committerKarl Williamson <khw@cpan.org>
Sun, 28 Feb 2016 01:08:37 +0000 (18:08 -0700)
commit6c0a9fb7ff06153ce0eaf565405143e37520f0da
treeda908dfd4f15f4c21ade645c2c881029ba9c2f88
parentff26755128a5a8772dc97867f605a19f44cc9abb
regcomp.c: Use less peak memory

This continues the process started in
accb4364d92e26c20e6a538fc04d1af52a8b94e2 of lowering memory use by not
creating unnecessary mortal SVs.

This changes the inversion union and intersection functions to avoid
entirely the creation of new mortals.
regcomp.c