Proper support for name attribute in <a> and <img>
[htmlpurifier/rdancer.git] / docs / dev-optimization.html
blob28e9fc05ec8dc42ab6882c8d8684fe14209ab878
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 <div id="version">$Id$</div>
32 </body></html>