:coffeescript slowness

22 views
Skip to first unread message

Александр Гурьянов

unread,
Apr 5, 2013, 3:17:59 AM4/5/13
to xitrum-f...@googlegroups.com
I found that writing coffeescript in scalate templates will significantly reduce performance. I run a little benchmark and render simple page with:

jade+javascript+1thread: 1-2ms for page
jade+coffesscript+1thread: 40-70ms for page
jade+javascript+100threads: ~40ms for page
jade+coffesscript+100threads: 400-700ms for page

May be it is important to say in docs, because somebody can decide that xitrum is slow (not scalate+coffesscript).

Ngoc Dao

unread,
Apr 5, 2013, 4:23:45 AM4/5/13
to Xitrum web framework
Thanks for the benchmark.
I've updated the Xitrum Guide:
http://ngocdaothanh.github.com/xitrum/guide/controller_action_view.html#coffeescript

Ngoc Dao

unread,
Apr 13, 2013, 11:00:53 PM4/13/13
to Xitrum web framework
I've created this library to solve the problem:
https://github.com/ngocdaothanh/RhinoCoffeeScript

I will tell the Scalate creator to try it. But I feel that I will have
to fork Scalate because it seems that Scalate is no longer maintained.


On 4月5日, 午後5:23, Ngoc Dao <ngocdaoth...@gmail.com> wrote:
> Thanks for the benchmark.
> I've updated the Xitrum Guide:http://ngocdaothanh.github.com/xitrum/guide/controller_action_view.ht...

Ngoc Dao

unread,
Apr 14, 2013, 12:02:06 AM4/14/13
to Xitrum web framework
I've sent this pull request to Scalate:
https://github.com/scalate/scalate/pull/50

Hope a new version of Scalate will be released soon.
Reply all
Reply to author
Forward
0 new messages