mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-08 23:08:42 +00:00
12 lines
357 B
Plaintext
12 lines
357 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
|
||
|
- Rewrite regexps into PHP code
|
||
|
- Serialize the Definition object
|
||
|
- Batch regexp validation (do as many per function call as possible)
|
||
|
- Parallelize strategies
|