Convert REGNODE_{SIMPLE,VARIES} to a bitmask lookup, from a strchr() lookup.
authorNicholas Clark <nick@ccl4.org>
Wed, 17 Mar 2010 17:16:24 +0000 (17:16 +0000)
committerNicholas Clark <nick@ccl4.org>
Thu, 27 May 2010 09:30:01 +0000 (10:30 +0100)
commitded4dd2add376b302c561318612805c584ef9e6a
treed57c609654654aca78765f15ef8a852dcfeaf9d1
parent93882df08ca38a02b0381419b29fff019ec87ef7
Convert REGNODE_{SIMPLE,VARIES} to a bitmask lookup, from a strchr() lookup.

This is O(1) with no branching, instead of O(n) with branching.
Deprecate the old implementation's externally visible variables
PL_simple and PL_varies. Google codesearch suggests that nothing outside the
core regexp code was using these.
regcomp.pl
regnodes.h