From df52406a88155bbde53a1d621bc5702688d8424f Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Sat, 12 Aug 2006 19:59:49 +0000 Subject: [PATCH] Commit optimization document. git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@222 48356398-32a2-884e-a903-53898d9a118a --- docs/optimization.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 docs/optimization.txt diff --git a/docs/optimization.txt b/docs/optimization.txt new file mode 100644 index 00000000..43569be0 --- /dev/null +++ b/docs/optimization.txt @@ -0,0 +1,11 @@ + +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