mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-23 08:51:53 +00:00
b5c69d8ca5
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@418 48356398-32a2-884e-a903-53898d9a118a
12 lines
404 B
Plaintext
12 lines
404 B
Plaintext
|
|
Optimization
|
|
|
|
Here are some possible optimization techniques we can apply to code sections if
|
|
they turn out to be slow. Be sure not to prematurely optimize though!
|
|
|
|
- Make Tokens Flyweights (may prove problematic, probably not worth it)
|
|
- Rewrite regexps into PHP code
|
|
- Serialize the Definition object
|
|
- Batch regexp validation (do as many per function call as possible)
|
|
- Parallelize strategies
|