Fork me on GitHub

Hi all, I'm curious about the performance of rum with datascript, for large and complex UIs. Any small change in state will cause the whole UI to rerender, yes? Is this a relevant concern? If so, what strategies can be employed to make things more efficient? Im aware of the static mixin, or implementing shouldComponentUpdate, but the former might be limiting, and the latter seems dangerous. Are there any methods one can use?


@levitanong Great question. I don't rerender the entire UI whenever the db changes since that's be wasteful (obviously). So I only render the parts that need re-rendering.


Can be done with the listen-... mixin that you can copy from some of the official rum examples.


I consulted with a colleague of mine, and he’s seen it before. It’s still prone to false positives, unfortunately. Better than rendering everything all the time, though! Beggars can’t be choosers 😛