Open hellochar opened 7 years ago
Does the data structure need to be immutable? Is it part of the redux state?
It might make sense to make the actual priority queue part of it mutable (e.g. have a mutable priority queue class that does the actual logic), and then have a way to communicate back to Redux.
should improve perf a lot because trees no longer update themselves constantly doing nothing.