ble.sh: [bash-completion] Slow when entering make xxx commands when building kernel

ble version: 0.4.0-devel4+9641c3b Bash version: 5.1.16(1)-release (x86_64-pc-linux-gnu)

Slow when entering kernel make xxx (e.g. make menuconfig, make install) commands when building kernel.

About this issue

  • Original URL
  • State: closed
  • Created 6 months ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

Thank you for the report. I first would like to confirm the problem. The answer would largely depend on the situation, and I have to avoid preparing answers for every case because the answer would tend to be long in any case.

  • What is slow? I guess that when you input make xxx into ble.sh in the source directory of the Linux kernel, the response of ble.sh becomes slow. Is that what you mean? For another possibility, maybe you mean that the command make xxx doesn’t start soon when you run the command by hitting RET or C-m? Or, the execution time of the command make xxx becomes longer?
  • What does “when building kernel” mean? Literally, it reads like you input make xxx into ble.sh while you are building the Linux kernel in the background. Another possibility is that you are just inside the source directory of the Linux kernel (without building the Linux kernel in the background)?
  • BTW, it’s not specified, but are you talking about the Linux kernel, but not any other kernel, right?

If you are running the build process in the background, it is somewhat expected. Building the Linux kernel consumes much computational resources. Every application can be slow while building the kernel. It’s not specific to ble.sh. Maybe the plain Bash doesn’t become as slow as ble.sh while building the kernel, but it is related to how much stuff ble.sh does more than the plain Bash. In particular, ble.sh touches filesystems to generate the candidates for autosuggestions while you are typing. This can be particularly slow since the I/O would likely be blocking while building the Linux kernel.

I mean when I input make xxx into ble.sh in the source directory of the Linux kernel inside the source directory of the Linux kernel (without building the Linux kernel in the background), the response of ble.sh becomes slow.

Sorry I didn’t make it clear.