pawandubey / griffin

speedy and simplistic static site generator.
Apache License 2.0
27 stars 7 forks source link

Improve Performance #9

Open pawandubey opened 9 years ago

pawandubey commented 9 years ago

Right now (as of today) Griffin can parse 1000 markdown documents containing the following text : Sample text in ~5 seconds. According to simple benchmarking and profiling, 80% of the time is taken by the Parser.writeFile method.

Task: Seek ways to improve performance of this method, for faster writing. Probably by using limited byte buffers instead of writing line by line. Objective: Improve performance. Desirably, ~1 second to parse 1000 files.