-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize performance! #45
Comments
Note: many optimizations can probably done right in https://github.com/chibicode/react-json-tree although components in this project should also have optimizable parts. |
Hey Dan, I'll try to spend some time on this tomorrow. I've used these tools a ton and would really like to give back. I can't promise a pull request but I'll give it a shot. |
Hey Dan, I'm willing to spend a day on this tomorrow too. @andrewcoelho, let me know if you find anything that we could split. |
@sergesemashko, I'm on a phone now so I haven't gotten a chance to look at the source, I'll ping you tomorrow if I come across anything. |
@andrewcoelho @sergesemashko I am also just beginning to do it but I'll take much time because it hard to make sufficient time to do it. |
I guess this just comes around to me being a noob at npm, but what would be the best way to set up the development environment for this? Creating a project, then importing this as a dependency (local or from npm) will use the compiled files and I would need to run |
@lindskogen, I would suggest to look into ready to use boilerplates or projects with redux-devtools setup for a quick start. (e.g. https://github.com/erikras/react-redux-universal-hot-example/) |
@lindskogen, not sure that this is a best option but you can start babel in watch mode: npm run build -- --watch |
@sergesemashko that is not for development, though? |
@lindskogen, there should be a redux application context where you can play with Not sure if following approach is the best one, but to debug
|
@sergesemashko, in #46 (if approved), will allow you to export the 300+ actions and import them after you made performance changes to the internal. That way you can test against the same dataset every time. This 300+ actions would also be beneficial to stress testing the importing/exporting functionality. |
- Decomposed LogMonitor, created LogMonitorEntryList, so log array is recalculated only when props are updated - added debounced scroll listener to container, so scrollTop is updated only when scroll ends
@lindskogen If you are still looking for the way to debug, I just add devtool to redux example. Here is forked repo. https://github.com/sotayamashita/redux/tree/debug/redux-devtools-log-monitor |
This project is ripe for performance optimizations. There’s a ton of low hanging fruit here. I think we can get 10x better performance if somebody just spends a day with
ReactPerf
and finds where all the wasted renders are coming from, and optimizes allocations from inline styles that almost never change. Any volunteers?Guide to optimizing React performance: http://benchling.engineering/deep-dive-react-perf-debugging/
The text was updated successfully, but these errors were encountered: