On Tue, 2012-10-23 at 14:33 +0200, Wojciech Danilo wrote: > > There can be some catches: don't use pyjs for apps > that need speedy responses (e.g. a drawing application), or > apps that > need to support old browsers (performance problem). > > Could you elaborate on this topic a little bit more? I wanted to use > pijamas to write application to visually process images - so it will > be like The foundry Nuke in web - It will have nodes (boxes draggable > by mouse), which will represent some operations (take a look > at: http://noflojs.org/). Why pyjamas will be not suitable for this > task? > It is translated to javascript and why it will be slow? > -- >
Pyjamas has overhead, that makes it slower than plain (optimized) javascript. The amount of overhead depends on how strict you need to mimic python (read: translator options). Draggable boxes shouldn't be a problem, unless you're using canvas to draw them. Then it might get slow. The guy that created grafpad (www.grafpad.com) started with pyjamas, but it turned out to be too slow for his application. See his blog: http://pyjsblog.blogspot.nl/2012/09/pyjamas-alternatives-for-web.html So, depending on how you intend to do the dragging (there's a drag-n-drop example that works great), it doable or not. --
