ozanmakes / markup.rocks

Pandoc based document editor and converter in your browser.
http://markup.rocks
MIT License
382 stars 22 forks source link

Make GHCJS yield back to the browser more frequently, so that the user's typing does not lag #6

Closed ryantrinkle closed 9 years ago

ryantrinkle commented 9 years ago

The default SCHED_QUANTUM in GHCJS is 25ms, and the default BUSY_YIELD time is 500ms, so background threads cause the UI to pause for about half a second at a time. This patch sets both times to 5ms.

ozanmakes commented 9 years ago

Didn't know you could tweak these, thanks!

ozanmakes commented 9 years ago

This is live now; sorry for the delay.

ryantrinkle commented 9 years ago

Awesome, man; it looks great!

On Mon, May 18, 2015 at 12:46 PM, Ozan Sener notifications@github.com wrote:

This is live now; sorry for the delay.

— Reply to this email directly or view it on GitHub https://github.com/osener/markup.rocks/pull/6#issuecomment-103123650.