|
From: Waylan L. <wa...@gm...> - 2008-07-03 19:57:33
|
On Thu, Jul 3, 2008 at 3:28 PM, Artem Yunusov <ne...@gm...> wrote: > >>> I think we also could speed up markdown by switching to cElementTree >>> instead of NanoDOM. >>> >> >> Which version of python would this require? >> > > cElementTree and ElementTree was includeded in Python std lib since > Python 2.5, but cElementTree itself can be used with Python 1.5.2 and later. > Just remember the c variation will not work on IronPython, Jython or other python implementations. Additionally, there may be (shared) web hosts which will allow a user to copy a pure python module to the server, but not compile a c module. So if we do switch, the import should be in a try...except block and import the non-c variation if c is not available. In such a situation, would ElementTree give us any advantage? Although, I believe that would give us an instant html/xhtml output option so it may make sense regardless of any speed increase - that is as long as it doesn't slow things down. -- ---- Waylan Limberg wa...@gm... |