Tips on making regex more performant?
bearophile
bearophileHUGS at lycos.com
Tue Jun 18 12:41:32 PDT 2013
Gary Willoughby:
> Any more tips?
Try using the LDC2 compiler, with the ctRegex, and using the
correct compilation flags (like ldmd2 -O -release -inline
-noboundscheck).
If that fails one solution is to write your own finite state
machine where the state is encoded by the program counter, using
gotos. There is a well known simple to use C library that
generates such code automatically. But it's probably better to
rethink your problem and re-frame it.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list