aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-08-08 11:02:23 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-08-08 11:02:23 -0700
commit21c95489607d0420f417f536b18629d2acd0e646 (patch)
tree89bc9904c5267e7c003f2526e632c7d6a26d3264 /doc
parent87ce1ffbd97f6cb2785f9fbf05f68d3185f50675 (diff)
downloadpandoc-21c95489607d0420f417f536b18629d2acd0e646.tar.gz
lua-filters.doc: make table narrower so it doesn't crowd out TOC.
Diffstat (limited to 'doc')
-rw-r--r--doc/lua-filters.md22
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/lua-filters.md b/doc/lua-filters.md
index dadc9a2fc..dcbe5b67f 100644
--- a/doc/lua-filters.md
+++ b/doc/lua-filters.md
@@ -61,17 +61,17 @@ replace it with a SmallCaps element with the same content.
To run it, save it in a file, say `smallcaps.lua`, and invoke
pandoc with `--lua-filter=smallcaps.lua`.
-Here's a quick performance comparison, using a version of the
-pandoc manual, MANUAL.txt, and versions of the same filter
-written in compiled Haskell (`smallcaps`) and interpreted Python
-(`smallcaps.py`):
-
- Command Time
- -------------------------------------------------- -------
- `pandoc MANUAL.txt` 1.01s
- `pandoc MANUAL.txt --filter ./smallcaps` 1.36s
- `pandoc MANUAL.txt --filter ./smallcaps.py` 1.40s
- `pandoc MANUAL.txt --lua-filter ./smallcaps.lua` 1.03s
+Here's a quick performance comparison, converting the pandoc
+manual (MANUAL.txt) to HTML, with versions of the same JSON
+filter written in compiled Haskell (`smallcaps`) and interpreted
+Python (`smallcaps.py`):
+
+ Command Time
+ ----------------------------------------- -------
+ `pandoc` 1.01s
+ `pandoc --filter ./smallcaps` 1.36s
+ `pandoc --filter ./smallcaps.py` 1.40s
+ `pandoc --lua-filter ./smallcaps.lua` 1.03s
As you can see, the lua filter avoids the substantial overhead
associated with marshalling to and from JSON over a pipe.