Skip to content

detect-clipboard is slow on startup #8827

Closed
@blayz3r

Description

@blayz3r

Describe the bug
A clear description of what the bug is.
detect-clipboard is slow on startup

To Reproduce
Steps to reproduce the behavior, for example:
start zsh with profiler on

Expected behavior
A brief description of what should happen.
Start normally
Screenshots and/or Recordings

If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS / Distro: [Ubunutu 20.04/wsl2]
  • Latest ohmyzsh Update?: [e.g. Yes]
  • ZSH Version: [5.8]
  • WSL2

Additional context
Add any other context about the problem here. This can be themes, plugins, custom configs.
num calls time self name

1) 1 196.85 196.85 85.97% 196.85 196.85 85.97% detect-clipboard
2) 1 11.32 11.32 4.94% 11.32 11.32 4.94% compinit
3) 1 9.18 9.18 4.01% 9.18 9.18 4.01% handle_completion_insecurities
4) 1 4.79 4.79 2.09% 4.71 4.71 2.06% _zsh_highlight_load_highlighters
5) 1 4.09 4.09 1.78% 4.09 4.09 1.78% _zsh_highlight_bind_widgets
6) 8 0.75 0.09 0.33% 0.75 0.09 0.33% add-zsh-hook
7) 1 0.66 0.66 0.29% 0.66 0.66 0.29% colors
8) 9 0.52 0.06 0.23% 0.52 0.06 0.23% compdef
9) 3 0.48 0.16 0.21% 0.48 0.16 0.21% is-at-least
10) 1 0.13 0.13 0.06% 0.13 0.13 0.06% (anon)
11) 5 0.09 0.02 0.04% 0.09 0.02 0.04% spaceship::deprecated
12) 6 0.09 0.01 0.04% 0.09 0.01 0.04% is_plugin
13) 1 0.27 0.27 0.12% 0.06 0.06 0.03% prompt_spaceship_setup
14) 2 0.04 0.02 0.02% 0.04 0.02 0.02% env_default
15) 1 0.01 0.01 0.01% 0.01 0.01 0.01% bashcompinit

Metadata

Metadata

Assignees

Labels

Area: coreIssue or PR related to core parts of the projectPerformanceIssue or PR about performance

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions