lucid
lucid copied to clipboard
Performance Optimizations
Some low-hanging fruit for perf gains that came out of our weekly meeting on 5/26:
- add a generic
shouldComponentUpdate
inlucid.createClass
that:- reference checks
this.props
- has a global opt-out flag
- reference checks
- lucid global
reflow
event- single global poll that checks for potential reflows and notifies subscribers
- dynamic polling interval?
-
requestAnimationFrame
- modify components that iterate to create children to use an instance method for event handling instead of partials to reduce function creation