@@ -61,17 +61,17 @@ replace it with a SmallCaps element with the same content.
6161To run it, save it in a file, say `smallcaps.lua`, and invoke
6262pandoc with `--lua-filter=smallcaps.lua`.
6363
64−Here's a quick performance comparison, using a version of the
65−pandoc manual, MANUAL.txt, and versions of the same filter
66−written in compiled Haskell (`smallcaps`) and interpreted Python
67−(`smallcaps.py`):
68−
69− Command Time
70− -------------------------------------------------- -------
71− `pandoc MANUAL.txt` 1.01s
72− `pandoc MANUAL.txt --filter ./smallcaps` 1.36s
73− `pandoc MANUAL.txt --filter ./smallcaps.py` 1.40s
74− `pandoc MANUAL.txt --lua-filter ./smallcaps.lua` 1.03s
64+Here's a quick performance comparison, converting the pandoc
65+manual (MANUAL.txt) to HTML, with versions of the same JSON
66+filter written in compiled Haskell (`smallcaps`) and interpreted
67+Python (`smallcaps.py`):
68+
69+ Command Time
70+ ----------------------------------------- -------
71+ `pandoc` 1.01s
72+ `pandoc --filter ./smallcaps` 1.36s
73+ `pandoc --filter ./smallcaps.py` 1.40s
74+ `pandoc --lua-filter ./smallcaps.lua` 1.03s
7575
7676As you can see, the lua filter avoids the substantial overhead
7777associated with marshalling to and from JSON over a pipe.