Fork me on GitHub
#rum
<
2016-08-29
>
levitanong13:08:03

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?

rauh14:08:48

@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.

rauh14:08:29

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

levitanong16:08:04

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 😛