Skip to content

require is 10 times slower in packed rubyΒ #160

@omohokcoj

Description

@omohokcoj

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions