Skip to content
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

require is 10 times slower in packed ruby #160

Open
omohokcoj opened this issue Aug 8, 2021 · 0 comments
Open

require is 10 times slower in packed ruby #160

omohokcoj opened this issue Aug 8, 2021 · 0 comments

Comments

@omohokcoj
Copy link

Resolving file paths for require is ~10 times slower in packed ruby which leads to a significant boot time slowdown (40 seconds to load packed rails app instead of 6-7seconds via regular interpreter in my case).

Regular ruby interpreter:

irb(main):005:0> Benchmark.measure { $LOAD_PATH.resolve_feature_path('sprockets/erb_processor') }.total

=> 0.0015339999999999243

Ruby-packer:

irb(main):005:0> Benchmark.measure { $LOAD_PATH.resolve_feature_path('sprockets/erb_processor') }.total

=> 0.01963300000000323
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant