Skip to content
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

shell startup time increased 457% from 0.7s to 3.9s #448

Open
3 tasks done
noahcoad opened this issue Jan 16, 2025 · 3 comments
Open
3 tasks done

shell startup time increased 457% from 0.7s to 3.9s #448

noahcoad opened this issue Jan 16, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@noahcoad
Copy link

Checks

Operating system

macOS 15.2.0 (24C101)

Expected behaviour

Time from starting a new shell instance/tab to time to prompt is not noticeably longer than before Q CLI

Actual behaviour

Installing Q CLI and now my shell startup time increased 457% from 0.7s to 3.9s

Steps to reproduce

Install Q CLI

Environment

[q-details]
version = "1.6.0"
hash = "6d13844d6546a5c29e7e121450af1130eb189e7f"
date = "2025-01-09T00:47:39.704258Z (7d ago)"
variant = "full"

[system-info]
os = "macOS 15.2.0 (24C101)"
chip = "Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz"
total-cores = 6
memory = "16.00 GB"

[environment]
cwd = "/Users/USER/Library/CloudStorage/Dropbox/code/conf/dot/aws"
cli-path = "/Users/USER/Library/CloudStorage/Dropbox/code/conf/dot/aws"
os = "Mac"
shell-path = "/bin/zsh"
shell-version = "5.9"
terminal = "iTerm 2"
install-method = "unknown"

[env-vars]
DISPLAY = "/private/tmp/com.apple.launchd.29DJfvdHi9/org.xquartz:0"
PATH = "/Users/USER/.espressif/tools/xtensa-esp-elf-gdb/14.2_20240403/xtensa-esp-elf-gdb/bin:/Users/USER/.espressif/tools/riscv32-esp-elf-gdb/14.2_20240403/riscv32-esp-elf-gdb/bin:/Users/USER/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin:/Users/USER/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin:/Users/USER/.espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin:/Users/USER/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240821/openocd-esp32/bin:/opt/homebrew/bin:/Users/USER/.vector/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Applications/iTerm.app/Contents/Resources/utilities:/Users/USER/Library/Application Support/Coursier/bin:/Users/USER/.local/bin:/Users/USER/code/script:/usr/local/sbin:/usr/local/opt/go/libexec/bin:/Users/USER/apps/go/bin:/usr/local/opt/curl/bin:/Users/USER/Library/Python/3.9/bin:/usr/local/lib/ruby/gems/3.0.0/bin:/usr/local/opt/ruby/bin:/Users/USER/.gem/ruby/2.6.0/bin:/usr/local/opt/coreutils/libexec/gnubin:/Users/USER/Library/CloudStorage/Dropbox/code/lib/apache-maven-3.9.8/bin:/Users/USER/.local/bin"
SHELL = "/bin/zsh"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.googlecode.iterm2"
@noahcoad
Copy link
Author

it's a poor customer experience and I immediately disabled the auto-completion due to the increased startup time

@brandonskiser brandonskiser added the enhancement New feature or request label Feb 1, 2025
@brandonskiser
Copy link
Contributor

Hey, thank you for the feedback! I agree, we need to investigate how to decrease the startup time.

@leipreachan
Copy link

I have two MacBooks - M1 (Sequoia 15.2) and M3 (Sequoia 15.3). Both have bash 5.3 as default

The M1 one opens a new terminal window in less than a second, the M3 one opens a new window in ~3-4 seconds.

I tried to pinpoint the issue to configuration or something else, but the only major difference between these two laptops is that M4 (the slower one) has Rosetta 2 installed.

I hope this help to debug the issue. Thanks

fast one:

[q-details]
version = "1.6.0"
hash = "6d13844d6546a5c29e7e121450af1130eb189e7f"
date = "2025-01-09T00:47:39.704258Z (24d ago)"
variant = "full"

[system-info]
os = "macOS 15.2.0 (24C101)"
chip = "Apple M1 Max"
total-cores = 10
memory = "32.00 GB"

[environment]
cwd = "/Users/USER"
cli-path = "/Users/USER"
os = "Mac"
shell-path = "/opt/homebrew/Cellar/bash/5.2.37/bin/bash"
shell-version = "5.2.37"
terminal = "Ghostty"
install-method = "unknown"

[env-vars]
PATH = "/usr/local/opt/tcl-tk/bin:/usr/local/sbin:/usr/local/bin:/opt/homebrew/bin:/Users/USER/bin:/Users/USER/workspace/gocode/bin:/usr/bin:/opt/homebrew/opt/python/libexec/bin/:/Users/USER/.docker/bin:/usr/local/go/bin:/usr/local/opt/tcl-tk/bin:/usr/local/sbin:/usr/local/bin:/opt/homebrew/bin:/Users/USER/bin:/Users/USER/workspace/gocode/bin:/usr/bin:/opt/homebrew/opt/python/libexec/bin/:/Users/USER/.docker/bin:/usr/local/go/bin:/usr/local/opt/tcl-tk/bin:/usr/local/sbin:/usr/local/bin:/opt/homebrew/bin:/Users/USER/bin:/Users/USER/workspace/gocode/bin:/usr/bin:/opt/homebrew/opt/python/libexec/bin/:/Users/USER/.docker/bin:/usr/local/go/bin:/usr/local/opt/tcl-tk/bin:/usr/local/sbin:/usr/local/bin:/opt/homebrew/bin:/Users/USER/bin:/Users/USER/workspace/gocode/bin:/usr/bin:/opt/homebrew/opt/python/libexec/bin/:/Users/USER/.docker/bin:/usr/local/go/bin:/opt/homebrew/sbin:/opt/homebrew/bin/:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/go/bin:/Applications/Ghostty.app/Contents/MacOS:/Users/USER/.local/bin:/Users/USER/Library/Application Support/JetBrains/Toolbox/scripts"
QTERM_SESSION_ID = "8f6cd3918075444387223f2e1aea5e91"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.6.0"
SHELL = "/opt/homebrew/bin/bash"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.mitchellh.ghostty"

slow one:

[q-details]
version = "1.6.0"
hash = "6d13844d6546a5c29e7e121450af1130eb189e7f"
date = "2025-01-09T00:47:39.704258Z (24d ago)"
variant = "full"

[system-info]
os = "macOS 15.3.0 (24D60)"
chip = "Apple M3 Pro"
total-cores = 11
memory = "36.00 GB"

[environment]
cwd = "/Users/USER"
cli-path = "/Users/USER"
os = "Mac"
shell-path = "/opt/homebrew/Cellar/bash/5.2.37/bin/bash"
shell-version = "5.2.37"
terminal = "Ghostty"
install-method = "unknown"

[env-vars]
PATH = "/Users/USER/.bun/bin:/opt/homebrew/bin:/usr/local/go/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/usr/local/go/bin:/Users/USER/.cargo/bin:/Applications/Ghostty.app/Contents/MacOS:/Users/USER/.local/bin:/Users/USER/bin"
QTERM_SESSION_ID = "172f7b9d078545e58abbdd856af4e8d2"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.6.0"
SHELL = "/opt/homebrew/bin/bash"
TERM = "xterm-ghostty"
__CFBundleIdentifier = "com.mitchellh.ghostty"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants