Skip to content
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

Merged
merged 1 commit into from
Oct 20, 2015
Merged

[DatePicker] Drastically improve perf #1905

merged 1 commit into from
Oct 20, 2015

Conversation

oliviertassinari
Copy link
Member

Fix #1899. I think that there is still room for improving perf on this component.

A benchmark when openning the DatePicker

Befor
image

After
image

@@ -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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No longer true

@oliviertassinari
Copy link
Member Author

@shaurya947 Any thougs?

window.React = React;
window.Perf = require('react/lib/ReactDefaultPerf');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

by default?

Copy link
Member Author

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').

@cgestes
Copy link
Contributor

cgestes commented Oct 19, 2015

nice!

@shaurya947
Copy link
Contributor

@oliviertassinari just tried out this branch, I do notice considerable improvement. Feel free to merge this! Good work 👍

oliviertassinari added a commit that referenced this pull request Oct 20, 2015
[DatePicker] Drastically improve perf
@oliviertassinari oliviertassinari merged commit c5e82ee into mui:master Oct 20, 2015
@oliviertassinari oliviertassinari deleted the date-picker-perf branch November 2, 2015 20:04
@zannager zannager added component: date picker This is the name of the generic UI component, not the React module! component: pickers This is the name of the generic UI component, not the React module! labels Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: date picker This is the name of the generic UI component, not the React module! component: pickers This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DatePicker slow during open
4 participants