evilstreak / markdown-js

A Markdown parser for javascript
7.69k stars 863 forks source link

hangups on large texts #109

Open aplib opened 10 years ago

aplib commented 10 years ago

Stress test. I took the sample code from readme and passed in the parameters of the plain text without formatting the volume of 2.5 megabytes. The processing is not executed within 15 minutes, then did not wait. How can handle large texts in parts? A preliminary analysis of markup?

evilstreak commented 10 years ago

Processing of large documents isn't something we've looked into. Can you make your input file available somewhere, in a gist for example?

Do you need to be able to process large files, or is this just for testing purposes? If the latter, I suggest building a simple test runner that will start with 1KB of input and double it each time, seeing how long it takes to return.

aplib commented 10 years ago

I checked whether you can use your component for practical purposes. Long texts can occur for example when the user inserts to the formatted document is an example of the log. There must be some way to realtime processing of such texts.