Implement "carryover" functionality, requested by Kinderlehrer <bitweaver@7doves...
[htmlpurifier/darkodev.git] / docs / dev-optimization.html
blobba677da016d036e0a9133add9d7d97bffb63f7b7
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <meta name="description" content="Discusses possible methods of optimizing HTML Purifier." />
7 <link rel="stylesheet" type="text/css" href="./style.css" />
9 <title>Optimization - HTML Purifier</title>
11 </head><body>
13 <h1>Optimization</h1>
15 <div id="filing">Filed under Development</div>
16 <div id="index">Return to the <a href="index.html">index</a>.</div>
17 <div id="home"><a href="http://htmlpurifier.org/">HTML Purifier</a> End-User Documentation</div>
19 <p>Here are some possible optimization techniques we can apply to code sections if
20 they turn out to be slow. Be sure not to prematurely optimize: if you get
21 that itch, put it here!</p>
23 <ul>
24 <li>Make Tokens Flyweights (may prove problematic, probably not worth it)</li>
25 <li>Rewrite regexps into PHP code</li>
26 <li>Batch regexp validation (do as many per function call as possible)</li>
27 <li>Parallelize strategies</li>
28 </ul>
30 </body></html>
32 <!-- vim: et sw=4 sts=4 -->