Old performance issue not fixed ( development only )
See original GitHub issueCurrent behavior: Performance difference between development and production is very different when using jsx pragma. Issue probably has to do with #1467
In one of my material-ui projects I get the following numbers in development: and the following in production: Performance difference is almost 150 times slower. The screenshots are from only 3 material-ui elements that are rendering.
To reproduce:
- Use a chromium based browser to get a highly accurate timer on the console
- Go to https://codesandbox.io/s/emotion-issue-template-forked-my9lw
- Click on rerender and watch console for time it took to run jsx code in development.
- Uncomment line 13 to set NODE_ENV environment to production
- Click on rerender and watch console for time compared to step 3
Expected behavior: I expected the performance difference to be at the worst case scenario 2x times slower
Environment information:
react
version: 17.0.1@emotion/react
version: 11.1.5
Issue Analytics
- State:
- Created 2 years ago
- Reactions:15
- Comments:37 (13 by maintainers)
Top Results From Across the Web
Troubleshooting application performance: Issues and answers
Sometimes poor performance is a problem unintentionally baked into application design; most commonly via over-componentization. Development ...
Read more >5 Performance Management Problems [And Possible Solutions]
A few common performance management problems that managers see are: Poor prioritizing and time management. Lost time (coming into work late, ...
Read more >Performance issues when you call web services - ASP.NET
This article provides help to solve the performance issues that occur when you make calls to web services from an ASP.NET application.
Read more >Performance improvement efforts — the dreaded side of ...
Sometimes performance issues need to be fixed ASAP, no matter the expenses ... solution so that not only you will fix the performance...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For the time being I suggest using patch-package to disable that part of the code.
I’ll be investigating this - I’d like to understand why this is slow for you first. After I get a better understanding the issue will get either fixed or some kind of an opt-out flag will be added (I don’t completely put off the table dropping this code entirely either).
I’m slammed with work right now so I won’t be able to look into it soon. It would be appreciated if you could dig into this deeper to assess what’s the problem.