This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcppush(): don't bother saving each paren number
authorDavid Mitchell <davem@iabyn.com>
Wed, 23 May 2012 11:19:55 +0000 (12:19 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 13 Jun 2012 12:32:53 +0000 (13:32 +0100)
commit87c0511b50e37fdfa35601e64fed1e2e6fe8fb90
tree664521bdf4581edf5cb27423bd32ddc3d8820311
parent97ca13b708ab3e04f8c819a06972a8ba0022e88d
regcppush(): don't bother saving each paren number

regcppush() saves a contiguous range of slots in rex->offs[].
Currently it saves the index (paren number) along with each slot's data.
Since we know the top index (the saved PL_regsize) and the number of
elements, on restoring we can deduce each paren number without saving it.
regexec.c