
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.
9 lines
77 B
Plaintext
9 lines
77 B
Plaintext
/plugins
|
|
/shims
|
|
/version
|
|
/versions
|
|
/sources
|
|
/cache
|
|
/libexec/*.dylib
|
|
/src/*.o
|