Skip to content
  • Mislav Marohnić's avatar
    16c7eb41
    Speed up `realpath()` with dynamically loaded C extension · 16c7eb41
    Mislav Marohnić authored
    On systems that support both C compiling and dynamic loading, we can
    speed up `realpath()` (where most time in rbenv is spent) by replacing
    it with a dynamically loaded bash builtin.
    
    When `make -C src` is called in the project's root,
    `libexec/rbenv-realpath.dylib` will be created. If it exists, rbenv will
    attempt to load it as a builtin command. If it fails, execution will
    fall back to the old `realpath()` shell function.
    16c7eb41
    Speed up `realpath()` with dynamically loaded C extension
    Mislav Marohnić authored
    On systems that support both C compiling and dynamic loading, we can
    speed up `realpath()` (where most time in rbenv is spent) by replacing
    it with a dynamically loaded bash builtin.
    
    When `make -C src` is called in the project's root,
    `libexec/rbenv-realpath.dylib` will be created. If it exists, rbenv will
    attempt to load it as a builtin command. If it fails, execution will
    fall back to the old `realpath()` shell function.
Loading