sgmllib too slow

Martin v. Loewis martin at v.loewis.de
Tue May 7 01:24:08 EDT 2002


"Stuart D. Gathman" <stuart at bmsi.com> writes:

> 1. Rewriting the whole thing in C is out of the question.  Rewriting in
> Java is a possibility, and easier than C - but not nearly as easy as
> Python.

Not sure what "the whole thing" is, but Fredrik Lundh has rewritten
sgmllib as a C module, named sgmlop. This is now included regularly in
PyXML, as xml.parsers.sgmlop. It has two modes of operation: SGML and
XML, and it is really fast.

HTH,
Martin




More information about the Python-list mailing list