Is it really faster? #1201
martenlienen
started this conversation in
General
Replies: 1 comment 10 replies
-
Can you run it with RTX_DEBUG=1 set? |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am coming from pyenv for python version management, which uses shims like asdf. And sure enough, the shims add roughly 100ms every time I invoke python or another shim command.
rtx will save me this time by putting the correct python on PATH and avoiding the shims. However, as far as I can tell, it does so by executing
eval "$(/home/ml/.cargo/bin/rtx hook-env -s zsh)";
as a pre-command and chpwd hook in zsh. Let's see how long that takes:Do I understand it correctly that rtx saves me 100ms to run python by costing me 100ms before I run any command or change directory? Also, how is
rtx hook-env
so slow? Shouldn't printing a constant string in rust take less than 1ms?Beta Was this translation helpful? Give feedback.
All reactions