Skip to content

very slow with large command #520

@simonLeary42

Description

@simonLeary42

There's a significant delay between when I press a key and when I see a character appear on screen. It seems that adding an open parentheses to the front really grinds BLE to a halt.

ble-slow

  • I notice that it's much faster to type at the end of the command than it is at the beginning.
  • Once this long command is in my bash history, I now get blocked up when cycling through previous commands with the up/down arrows. The same goes for searching previous commands with ctrl+R.
  • after disabling vim mode, it's faster but still not usable.
  • disabling syntax/filename/variable highlighting did not make a difference.
  • after I paste, the progress bar pauses the longest at 85% "constructing text"

It seems to me like the solution is for me to open a proper editor with <ctrl+x><ctrl+e> before I want to paste a big command. If this problem is commonplace, would it make sense to add a feature for BLE to detect large inputs and do this automatically?

GNU bash, version 5.2.26(1)-release (aarch64-apple-darwin23.2.0)
ble.sh, version 0.4.0-devel4+32f290d (noarch) [git 2.44.0, GNU Make 4.4.1, GNU Awk 5.3.0, API 4.0, (GNU MPFR 4.2.1, GNU MP 6.3.0)]
locale: LANG=en_US.UTF-8 LC_TERMINAL=iTerm2 LC_TERMINAL_VERSION=3.5.5
terminal: TERM=xterm-256color wcwidth=15.0-west/16.0-2+ri, iTerm2:3.5.5 (41;2500;0)
options: -emacs +pipefail +vi +autocd +cdspell +dirspell +failglob +globstar +histappend +inherit_errexit +login_shell +no_empty_cmd_completion +nocaseglob

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions