derivablejs icon indicating copy to clipboard operation
derivablejs copied to clipboard

docs: add S.js benchmark

Open yuanhan1890 opened this issue 7 years ago • 1 comments

S.js is incredibly fast for fan_out and waterfall, but slower for other benchmarks. That's interesting.

yuanhan1890 avatar May 26 '18 10:05 yuanhan1890

I imagine it is due to S.js being developed along side Surplus a UI rendering library. It was optimized to fit over the DOM. Surplus doesn't use a component system like React to manage change propagation but instead relies on S.js. This leads to more granularity in reactions (there is no Component.render / forceUpdate etc..) and increases the degree of nesting since lacking Components every template context requires its own. This finer granularity reduces the need for diffing but pretty much rides on efficient propagation.

ryansolid avatar Jun 16 '19 02:06 ryansolid