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
Really slow r.js performance depending on build #3757
Comments
Seems to be related to the V8 version. Changing Interestingly it's even faster when linking with V8 3.7.12.22 statically, even though that's the same version I've installed on my system. The same query now only takes 0.21s instead of 0.85s with the system-wide libv8 of the same version. |
Weirdly enough linking with V8 3.22.24.17 statically is fast on deadshot (one of our servers), and even faster (0.38s) than linking with the system's 3.7.12.22 (~0.9s). |
The expensive V8 call is
This call takes 10-30 ms in the slow case. |
It seems like V8's snapshot feature that exists for speeding up context creation isn't working on my computer for some reason, even though it seems to be enabled when building V8. It's working fine on deadshot. |
@AtnNn found the problem: V8 compiles first without a snapshot, and then in a second step generates the snapshot. Whether the snapshot is used or not depends on which subset of the @AtnNn already has fix for this in his branch for #3423. He's going to backport it to v1.16.x. |
Implementation in nighelles/6108, Review #3757 by @danielmewes
Implementation in nighelles/6108, Review #3757 by @danielmewes
Implementation in nighelles/6108, Review #3757 by @danielmewes
Noticed while trying to reproduce #3703 .
Compiling from source on Ubuntu precise:
takes 0.85 seconds.
Using our official package, the same query takes 11.5 seconds. It uses 100% of all 8 CPU cores while running.
The same is true with our CentOS 6 binary.
./configure --allow-fetch
output:The text was updated successfully, but these errors were encountered: