dillon1000/react
Commit
Browse files Faster Listener Deletion
Whenever a component is unmounted, we delete all listeners that might have been attached. This sucks because most applications, Facebook included, do not use every listener. There's a lot of wasted computation, especially if many components are mounted and unmounted. This changes `deleteAllListeners` to more delete listeners more efficiently.
Changed paths2 files
First-parent comparisonsrc/event/CallbackRegistry.js ModifiedM src/event/EventPluginHub.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…