4 Here are some possible optimization techniques we can apply to code sections if
5 they turn out to be slow. Be sure not to prematurely optimize: if you get
6 that itch, put it here!
8 - Make Tokens Flyweights (may prove problematic, probably not worth it)
9 - Rewrite regexps into PHP code
10 - Serialize the Definition object
11 - Batch regexp validation (do as many per function call as possible)
12 - Parallelize strategies