raycmorgan/Mu

Mu seems stall event loop

Closed this issue · 1 comments

Hello. I've wrote simple benchmark (http://github.com/mbeloshitsky/Mu/blob/master/benchmarks/blocking.js) to check how Mu templating deals with event loop and get following results:

*** Mu templating
   Ticks: 2
   Time: 643ms
*** Idle time
   Ticks: 429437
   Time: 644ms

Seems that mu in it's synchronous version (asynchronous probably too but i've not tested it) stalls event loop while rendering template. Possible solution is inject nextTick somewhere in rendering process.

This has been implemented. Closing old tickets.