yakticus / goggles

A scala.js library for creating visualizations using SVG
22 stars 2 forks source link

study how d3 does DOM manipulation #4

Open yakticus opened 9 years ago

yakticus commented 9 years ago

ensure we can get at least as good performance as D3 DOM manipulation using scalatags + scala.rx

virtualirfan commented 9 years ago

When running in the browser, just visually, this example:

Force-directed graph (scalatags + scala.rx)

is much, much slower than these:

Force-directed graph (js.Dynamic.global)
Force-directed graph (scala.js facade)

Animations draw much more slowly and interactivity is very slow.

Sorry, not adding much value right now :flushed:

virtualirfan commented 9 years ago

Actually, i should take some of that back ... i just ran with fullOptJs and it's noticeably faster than before. Initial draw is significantly slower than the facade and dynamic implementations But drag performance with scalatags/rx is much closer to the facade and dynamic implementations.