Actually, it might. Accessing int32s is typically faster than accessing bytes on modern architectures. Data buses aren't 8bit anymore...
The pentium 4 has a lot of ingenious hardware to ensure that accessing 4 8bit values (in sequence) is just as fast as accessing a 32bit value.
However, this is probably not true for most other architectures.
/ Per Hedbor ()
Previous text:
2003-01-29 18:23: Subject: Re: Real-life PCRE vs Regexp benchmarking
I think a better alternative might be to attempt to change 'char' to 'int32' in the PCRE-code.
This will not improve performance either :)
Actually, it might. Accessing int32s is typically faster than accessing bytes on modern architectures. Data buses aren't 8bit anymore...
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)