On the Speed of ReST

Van Gale news at exultants.org
Tue May 20 01:45:54 EDT 2003


Jane Austine wrote:

> What can I do to speed it up? Should I look for something else like re
> module?

Well, the most obvious answer would be to cache the results.  If you use 
a "lazy cache" algorithm then all you need to do is delete the generated 
version in cache anytime the original reST source changes.

I think using reST is a good idea for a wiki (in other words, it is 
worth going through any kind of effort to improve performance), but if 
you decide you don't want to use reST I would recommend using the parser 
from Moinmoin (compatibility can't be bad eh?) or using PyTextile from 
Mark Pilgrim <http://diveintomark.org/projects/pytextile/>.  PyTextile 
might only be appropriate for shorter texts like weblogs and forums 
though.  Not sure how well it would scale up to larger documents.  It 
uses 're'.

Van





More information about the Python-list mailing list