-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[DatePicker] Drastically improve perf #1905
[DatePicker] Drastically improve perf #1905
Conversation
@@ -5,8 +5,9 @@ const AppRoutes = require('./app-routes.jsx'); | |||
const injectTapEventPlugin = require('react-tap-event-plugin'); | |||
const createHistory = require('history/lib/createHashHistory'); | |||
|
|||
//Needed for React Developer Tools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No longer true
@shaurya947 Any thougs? |
window.React = React; | ||
window.Perf = require('react/lib/ReactDefaultPerf'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hum, I should use require('react-addons-perf')
.
nice! |
@oliviertassinari just tried out this branch, I do notice considerable improvement. Feel free to merge this! Good work 👍 |
[DatePicker] Drastically improve perf
Fix #1899. I think that there is still room for improving perf on this component.
A benchmark when openning the DatePicker
Befor
After