Skip to content

perf: skip loading config object before launching command#1251

Merged
jdx merged 1 commit intomainfrom
lazy-config
Dec 23, 2023
Merged

perf: skip loading config object before launching command#1251
jdx merged 1 commit intomainfrom
lazy-config

Conversation

@jdx
Copy link
Copy Markdown
Owner

@jdx jdx commented Dec 23, 2023

Fixes #412

This makes rtx a lot faster when the config isn't needed—though sadly it is needed for most things. It makes rtx completion zsh go from 3ms to 2ms on my machine though.

This paves the way for more perf improvements later. It'll also make things like rtx doctor work even if config loading fails.

@jdx jdx enabled auto-merge (squash) December 23, 2023 00:56
@jdx jdx merged commit 0514fe1 into main Dec 23, 2023
@jdx jdx deleted the lazy-config branch December 23, 2023 01:04
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

Successfully merging this pull request may close these issues.

make config optional in commands

1 participant