-
Notifications
You must be signed in to change notification settings - Fork 293
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
Slonik is 50x slower when used with ncc #646
Comments
@thomasthiebaud source maps can considerably slow down execution time. Did you try compiling with ncc without the source map? |
@guybedford it does not seem that this is the issue. Without source and without minifying, I still have a huge perf difference for Slonik
You can easily reproduce the issue in that repo https://github.com/thomasthiebaud/slonik-perf-issue |
@thomasthiebaud do any of the dependencies have native implementations that are only used when a native platform version is available? ncc not managing to inline such native code resulting in a JS fallback might explain the issue? |
yes slonik has an optional dependency on |
Right - it would be worth checking if |
It does not seem that
|
Is there any other dependency you think it could be? Because this is performance and not an actual breakage, missing native deps / slow optional deps seems the most likely cause. |
It does not seem like there is another native dependency |
Slonik is 10x slower when I compiled my code using ncc. I'm not sure where the issue lies, because
pg
does not have the same issue.Here is a minimal repo to reproduce the issue https://github.com/thomasthiebaud/slonik-perf-issue
The text was updated successfully, but these errors were encountered: