piranha / pump

Pump your REACTive app with fuel
Eclipse Public License 1.0
75 stars 5 forks source link

FYI: You can take advantage of HUGE optimizations when using persistent data structures. #4

Open jordwalke opened 11 years ago

jordwalke commented 11 years ago

We have a version of OrderedMap in JavaScript that we use to create huge performance optimizations. Since it's JS though, the guarantees are not as strong and we must force the developer to help guide the process along. Since you're using persistent data structures by default and you know when something could possibly have been mutated, you can very easily determine when to "bail out" of reconciling the UI structure early on in subtrees. Let me know if you have any good ideas here.

piranha commented 11 years ago

Yeah that would be awesome! I don't know about React internals too much yet but I'm really excited to see where this can bring us. Which somehow reminded me that I forgot about single issue, going to write another mail to list...

jordwalke commented 11 years ago

If you post issues on the github issues page for React, you'll probably get a bit more traction and community responses.

www.github.com/facebook/react/

piranha commented 11 years ago

Sure, I will, I just needed to get everything out of my head in somebody's ears, and now I can organize problems, thoughts and post proper bugs. :)