This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In struct regexp replace the two arrays of I32s accessed via startp
authorNicholas Clark <nick@ccl4.org>
Mon, 26 Mar 2007 22:52:18 +0000 (22:52 +0000)
committerNicholas Clark <nick@ccl4.org>
Mon, 26 Mar 2007 22:52:18 +0000 (22:52 +0000)
commitf0ab9afb53ef594bb6fb8989153fbfba9762816f
treea85cb73f7a598badd81595546dcbf6c972e35978
parent82a7479cc5a6419185bb7d8b5f033dc6e60e261b
In struct regexp replace the two arrays of I32s accessed via startp
and endp with a single array of struct regexp_paren_pair, which has 2
I32 members. PL_regstartp and PL_regendp are replaced with a pointer
to regexp_paren_pair. The regexp swap structure now only has one
member, so abolish it and store the pointer to the swap array directly.
Hopefully keeping the corresponding start and end adjacent in memory
will help with cache coherency.

p4raw-id: //depot/perl@30769
mg.c
pp.c
pp_ctl.c
pp_hot.c
regcomp.c
regexec.c
regexp.h
sv.c
universal.c