Skip to content

perf: improve tool loading performance in async code#5198

Merged
jdx merged 3 commits into
mainfrom
async
May 26, 2025
Merged

perf: improve tool loading performance in async code#5198
jdx merged 3 commits into
mainfrom
async

Conversation

@jdx

@jdx jdx commented May 26, 2025

Copy link
Copy Markdown
Owner

No description provided.

@jdx jdx changed the title async perf: improve tool loading performance in async code May 26, 2025
@jdx jdx force-pushed the async branch 11 times, most recently from c7abcb8 to d072229 Compare May 26, 2025 19:11
@github-actions

github-actions Bot commented May 26, 2025

Copy link
Copy Markdown

e2e/perf/test_many_tasks

  • NUM_TASKS: 2000
  • NUM_TOOLS: 200
Command Uncached mise Cached mise Uncached mise-2025.5.13 Cached mise-2025.5.13
install 1067ms 213ms 821ms 197ms
ls 711ms 101ms 688ms 80ms
bin-paths 937ms 87ms 692ms 74ms
task-ls 3403ms 280ms 2049ms 309ms

Hyperfine Performance

mise x -- echo

Command Mean [ms] Min [ms] Max [ms] Relative
mise-2025.5.13 x -- echo 51.1 ± 1.0 47.7 61.2 1.07 ± 0.04
mise x -- echo 47.9 ± 1.4 43.8 53.7 1.00

mise env

Command Mean [ms] Min [ms] Max [ms] Relative
mise-2025.5.13 env 50.0 ± 0.9 46.8 51.9 1.04 ± 0.04
mise env 48.2 ± 1.5 43.4 54.1 1.00

mise hook-env

Command Mean [ms] Min [ms] Max [ms] Relative
mise-2025.5.13 hook-env 50.0 ± 0.8 47.0 51.9 1.04 ± 0.04
mise hook-env 48.2 ± 1.6 44.6 54.8 1.00

mise ls

Command Mean [ms] Min [ms] Max [ms] Relative
mise-2025.5.13 ls 57.9 ± 0.6 55.0 60.0 1.00
mise ls 70.2 ± 2.0 64.7 85.8 1.21 ± 0.04

@jdx jdx force-pushed the async branch 2 times, most recently from 8da2db4 to 879cd43 Compare May 26, 2025 20:26
@github-actions

Copy link
Copy Markdown

If you are adding a new tool to mise, note the following:

  • New asdf plugins are not accepted
  • Tools may be rejected if they are not notable
  • A test is required in registry.toml

@jdx jdx force-pushed the async branch 5 times, most recently from d988faa to 35a7f39 Compare May 26, 2025 21:10
@jdx jdx force-pushed the async branch 5 times, most recently from 9b0a1c3 to 038a71e Compare May 26, 2025 22:31
@jdx jdx enabled auto-merge (squash) May 26, 2025 22:38
@jdx jdx merged commit 5ffbc92 into main May 26, 2025
26 checks passed
@jdx jdx deleted the async branch May 26, 2025 22:50
jdx pushed a commit that referenced this pull request May 26, 2025
### 🐛 Bug Fixes

- installing tools with postinstall hooks fails by
[@roele](https://github.com/roele) in
[#5191](#5191)
- prefer offline when executing shims by [@jdx](https://github.com/jdx)
in [#5195](#5195)
- multi-line task output is shown in bold by
[@roele](https://github.com/roele) in
[#5197](#5197)

### ⚡ Performance

- improve tool loading performance in async code by
[@jdx](https://github.com/jdx) in
[#5198](#5198)
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.

1 participant