-
-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extreme slow startup since 2024.11.3-1 #2961
Comments
what is slow? how slow? can you send output with |
Maybe try with
|
That shouldn't be necessary |
In fish, I notice a delay of about 200 ms after executing any command before the new prompt appears. Previously, there was no noticeable delay. ~ ∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶
❯ ls -a
Permissions Size User Date Modified Name
[ FILE LIST ]
DEBUG 1 [src/cli/mod.rs:228] ARGS: /opt/homebrew/opt/mise/bin/mise hook-env -s fish
TRACE 1 [src/plugins/asdf_plugin.rs:60] vfox_plugin: "/Users/username/.local/share/mise/plugins/julia"
TRACE 2 [src/file.rs:149] cat ~/.local/share/mise/installs/cargo-ubi-cli/.mise.backend.json
TRACE 1 [src/config/mod.rs:82] config_paths: ["/Users/username/.config/mise/config.toml"]
TRACE 1 [src/file.rs:149] cat ~/.local/state/mise/trusted-configs/mise-config.hash
TRACE 1 [src/file.rs:27] open ~/.config/mise/config.toml
TRACE 1 [src/file.rs:149] cat ~/.config/mise/config.toml
TRACE 1 [src/config/config_file/mise_toml.rs:90] parsing: ~/.config/mise/config.toml
TRACE 1 [src/config/mod.rs:99] config: Config {
Config Files: [
"~/.config/mise/config.toml",
],
}
TRACE 1 [src/config/mod.rs:501] EnvResults
TRACE 1 [src/hook_env.rs:67] config file modified: "/Users/username/.local/share/mise"
TRACE 4 [src/backend/mod.rs:225] Listing remote versions for go
TRACE 4 [src/backend/mod.rs:233] Calling backend to list remote versions for go
DEBUG 15 [src/cmd.rs:93] $ git ls-remote --tags https://github.com/golang/go go*
TRACE 4 [src/cache.rs:137] writing ~/.cache/mise/go/remote_versions-a083b.msgpack.z
TRACE 4 [src/file.rs:103] mv /Users/username/.cache/mise/go/remote_versions-a083b.msgpack.part-0IQkIDCu /Users/username/.cache/mise/go/remote_versions-a083b.msgpack.z
DEBUG 1 [/Users/brew/Library/Caches/Homebrew/cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/xx-1.1.8/src/file.rs:186] ls: "/Users/username/.local/share/mise/installs/go"
DEBUG 1 [/Users/brew/Library/Caches/Homebrew/cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/xx-1.1.8/src/file.rs:186] ls: "/Users/username/.local/share/mise/installs/go"
TRACE 12 [src/cache.rs:137] writing ~/.cache/mise/julia/1.11.1/list_bin_paths-a083b.msgpack.z
TRACE 12 [src/file.rs:103] mv /Users/username/.cache/mise/julia/1.11.1/list_bin_paths-a083b.msgpack.part-peam3kqw /Users/username/.cache/mise/julia/1.11.1/list_bin_paths-a083b.msgpack.z
TRACE 3 [src/cache.rs:137] writing ~/.cache/mise/julia/1.10.6/list_bin_paths-a083b.msgpack.z
TRACE 3 [src/file.rs:103] mv /Users/username/.cache/mise/julia/1.10.6/list_bin_paths-a083b.msgpack.part-QEYk42Ik /Users/username/.cache/mise/julia/1.10.6/list_bin_paths-a083b.msgpack.z
DEBUG 1 [/Users/brew/Library/Caches/Homebrew/cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/xx-1.1.8/src/file.rs:186] ls: "/Users/username/.local/share/mise/installs/go"
~ ∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶∶
❯ DEBUG 1 [src/cli/mod.rs:228] ARGS: /opt/homebrew/opt/mise/bin/mise activate fish ❯ mise doctor
version: 2024.11.4 macos-arm64 (2024-11-06)
activated: yes
shims_on_path: no
build_info:
Target: aarch64-apple-darwin
Features: DEFAULT, NATIVE_TLS
Built: Wed, 6 Nov 2024 22:16:42 +0000
Rust Version: rustc 1.82.0 (f6e511eec 2024-10-15) (Homebrew)
Profile: release
shell:
/opt/homebrew/bin/fish
fish, version 3.7.1
dirs:
data: ~/.local/share/mise
config: ~/.config/mise
cache: ~/.cache/mise
state: ~/.local/state/mise
shims: ~/.local/share/mise/shims
config_files:
~/.config/mise/config.toml
backends:
cargo
core
go
npm
pipx
spm
ubi
vfox
plugins:
toolset:
[email protected]
cargo:[email protected]
[email protected]
[email protected]+7-60
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
ruby@system
env_vars:
MISE_GO_DEFAULT_PACKAGES_FILE=~/.config/mise/go_packages.txt
MISE_LEGACY_VERSION_FILE=1
MISE_NODE_DEFAULT_PACKAGES_FILE=MISE_CONFIG_DIR/node_packages.txt
MISE_DATA_DIR=~/.local/share/mise
MISE_CACHE_DIR=~/.cache/mise
MISE_PYTHON_DEFAULT_PACKAGES_FILE=~/.config/mise/python_packages.txt
MISE_USE_TOML=1
MISE_CONFIG_DIR=~/.config/mise
MISE_CONFIG_FILE=~/.config/mise/config.toml
MISE_SHELL=fish
settings:
activate_aggressive = false
all_compile = false
always_keep_download = false
always_keep_install = false
asdf = true
asdf_compat = false
cache_prune_age = "0s"
cargo_binstall = true
ci = false
color = true
debug = false
disable_backends = ["asdf"]
disable_default_registry = false
disable_hints = [
"outdated_bump",
"python_multi",
"registry",
]
disable_tools = []
env_file = ".env"
experimental = false
fetch_remote_versions_cache = "1h"
fetch_remote_versions_timeout = "10s"
go_default_packages_file = "~/.config/mise/go_packages.txt"
go_download_mirror = "https://dl.google.com/go"
go_repo = "https://github.com/golang/go"
go_set_gopath = false
go_set_goroot = true
go_skip_checksum = false
http_timeout = "30s"
jobs = 8
legacy_version_file = true
legacy_version_file_disable_tools = []
libgit2 = true
lockfile = false
log_level = "info"
not_found_auto_install = false
paranoid = true
pin = false
plugin_autoupdate_last_check_duration = "360"
python_precompiled_arch = "aarch64"
python_venv_auto_create = false
quiet = false
raw = false
task_timings = false
trace = false
trusted_config_paths = []
use_versions_host = true
verbose = false
yes = false
[cargo]
binstall = true
[node]
[pipx]
uvx = false
[python]
default_packages_file = "~/.config/mise/python_packages.txt"
precompiled_arch = "aarch64"
pyenv_repo = "https://github.com/pyenv/pyenv.git"
venv_auto_create = false
venv_stdlib = false
[ruby]
default_packages_file = "~/.default-gems"
ruby_build_repo = "https://github.com/rbenv/ruby-build.git"
ruby_install = false
ruby_install_repo = "https://github.com/postmodern/ruby-install.git"
[status]
missing_tools = "always"
show_env = true
show_tools = false
No warnings found
No problems found |
Hi, I've been experiencing similar issues over the past few days with The behavior has been quite erratic. Previously, before versions Now, the situation seems a bit different. It seems somewhat random when it fetches fresh data from the internet instead of using the cache. When I run mise doctor output
Below, you can find the first mise ls
second mise ls
third mise ls
fourth mise ls
Additionally, the log messages in |
I have set After I open new terminal tab, slowdown is noticeable at this point in log:
|
I am able to reproduce, it is not using the cache if it is old for
There are a few other strange things here. It appears to not be using the versions host for core tools, I see that issue, but that shouldn't massively change the performance here. It also appears to not be using the versions host for @nickchomey with non-core tools but that may be configured that way. |
Verified with: `touch -t 201007162310 ~/.mise/cache/bat/remote_versions-* ~/.mise/cache/ && m ls -v bat` Fixes #2961
Verified with: `touch -t 201007162310 ~/.mise/cache/bat/remote_versions-* ~/.mise/cache/ && m ls -v bat` Fixes #2961
Verified with: `touch -t 201007162310 ~/.mise/cache/bat/remote_versions-* ~/.mise/cache/ && m ls -v bat` Fixes #2961
Seems to be working fine now in v2024.11.6 - slow on initial |
as the title, the good old days came back after revert back to 2024.11.0-1
mise doctor:
The text was updated successfully, but these errors were encountered: