ey6es / phantasml

Web-based collaborative "creature lab" for machine learning/AI research and education.
https://www.phantasml.com
MIT License
2 stars 3 forks source link

Use React.PureComponent/React.memo to speed up rendering. #31

Open ey6es opened 5 years ago

ey6es commented 5 years ago

In hopes of making UI updates more responsive, we should use PureComponent/memo where possible.

ey6es commented 5 years ago

One thing I noticed: moving things around with the translate tool is substantially faster than with the grab tool. Apart from making sure that we reuse UI components when entity components don't change, this is worth looking into as a source of slowdown.