This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
reduce size of struct regmatch_state
authorDavid Mitchell <davem@iabyn.com>
Thu, 24 May 2012 11:23:44 +0000 (12:23 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 13 Jun 2012 12:32:53 +0000 (13:32 +0100)
commit6603fe3e11361247713010ab62a431ccb4ed4641
tree347048f61a7417ef5352eedb291545aa3eb21edf
parent87c0511b50e37fdfa35601e64fed1e2e6fe8fb90
reduce size of struct regmatch_state

Currently the trie struct is the largest sub-struct in the union;
reduce its size by 2 x 8 bytes (on a 64-bit system) by
    1) aligning a bool better
    2) eliminating ST.B, which can be trivially derived as
       ST.me + NEXT_OFF(ST.me)

(I'm going to partially spoil this by adding a new field in the next commit)
regexec.c
regexp.h