浏览代码

Add performance note to hacking docs.

Brit Butler 11 年之前
父节点
当前提交
2268516412
共有 1 个文件被更改,包括 15 次插入0 次删除
  1. 15 0
      docs/hacking.md

+ 15 - 0
docs/hacking.md

23
     staging directory. It does whatever work is needed to make the
23
     staging directory. It does whatever work is needed to make the
24
     generated HTML files (and any static content) visible to the web.
24
     generated HTML files (and any static content) visible to the web.
25
 
25
 
26
+## A Note on Performance
27
+
28
+A recent test on my Core i5 touting Thinkpad generated my 430-post blog
29
+in 2.7 seconds. This averages out to about 6-7 milliseconds per piece of
30
+content. However, about 400 of those 430 items were HTML posts from a
31
+wordpress export, not markdown posts that require parsing with 3bmd.
32
+I expect that 3bmd would be the main bottleneck on a larger site. It
33
+would be worthwhile to see how well [cl-markdown][clmd] performs as
34
+a replacement if this becomes an issue for users though we would lose
35
+source highlighting from [colorize][clrz] and should also investigate
36
+[pygments][pyg] as a replacement.
37
+
26
 ## Core Concepts
38
 ## Core Concepts
27
 
39
 
28
 ### Data and Deployment
40
 ### Data and Deployment
253
 [post_receive_hook]: https://github.com/redline6561/coleslaw/blob/master/examples/example.post-receive
265
 [post_receive_hook]: https://github.com/redline6561/coleslaw/blob/master/examples/example.post-receive
254
 [closure_template]: https://github.com/archimag/cl-closure-template
266
 [closure_template]: https://github.com/archimag/cl-closure-template
255
 [api_docs]: https://github.com/redline6561/coleslaw/blob/master/docs/plugin-api.md
267
 [api_docs]: https://github.com/redline6561/coleslaw/blob/master/docs/plugin-api.md
268
+[clmd]: https://github.com/gwkkwg/cl-markdown
269
+[clrz]: https://github.com/redline6561/colorize
270
+[pyg]: http://pygments.org/