-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
incredibly slow load times #85
Comments
An initialization time of ~20 seconds seems unusual. Which browser was this tested on? Does disabling the dynamic modules help?: const vips = await Vips({
// Optimize startup time by disabling the dynamic modules
dynamicLibraries: []
}); |
tested on firefox -- this seems to fix it, load times are now instant. thanks! (not closing this for now because 20 seconds seems like an awfully long time with dynamic modules?) |
On my 8-year-old(!) laptop, initialization takes about 3 seconds in Firefox when I visit: Do you see a successful load for |
@not-nullptr Were you able to make any progress with this? |
i did make a new discovery -- memory usage is around ~1.3gb with dynamic modules disabled. that's about it though |
Memory usage is expected to be around ~1GiB. See for example the following references: Lines 111 to 112 in 63500a5
Line 131 in 63500a5
The changeset at master...allow-memory-growth may address this issue. However, it fails the test suite when using |
Closing due to inactivity but please feel free to reopen with more details if further help is required. |
hello! i'm loading wasm-vips in a web worker and using postMessage to do some file conversions. it sends a message when the Vips promise (ie what's returned from the default export function) is resolved, but this can take upwards of 15 to 20 seconds. the file is cached so no idea why its taking so long? very happy to do any troubleshooting if this is unintended
The text was updated successfully, but these errors were encountered: