-
Notifications
You must be signed in to change notification settings - Fork 327
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
[Bug] loadAndCacheImage slows down 8 times after build React app with Vite #1802
Labels
Comments
MustafaEminn
changed the title
[Bug] loadAndCacheImage slows down 400% after build React app with Vite
[Bug] loadAndCacheImage slows down 8 times after build React app with Vite
Feb 3, 2025
Hmmm, how much of it is request over network? |
There is no request over network. Every data coming from SSD or RAM. I have debugged the problem. The time consuming part is @cornerstonejs\dicom-image-loader\dist\esm\imageLoader\createImage.js createImage function. I'm also getting warning messages during build.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the Bug
Loading and caching 8MB MG image takes 1 second when I'm running application on my local. But same images takes 8 seconds after I built my application. I'm only using local file system not using WADORS.
vite.config.ts:
package.json:
Steps to Reproduce
The current behavior
It is very slow compared to unbundled version.
The expected behavior
It would be same as unbundled version
OS
Windows 10
Node version
20.11.0
Browser
Chrome latest
The text was updated successfully, but these errors were encountered: