Skip to content

Fix slow multiline evaluation due to pexpect sleeps - #160

Open
thomasjm wants to merge 1 commit into
takluyver:masterfrom
codedownio:fix-performance
Open

Fix slow multiline evaluation due to pexpect sleeps#160
thomasjm wants to merge 1 commit into
takluyver:masterfrom
codedownio:fix-performance

Conversation

@thomasjm

@thomasjm thomasjm commented Aug 7, 2026

Copy link
Copy Markdown

I noticed bash_kernel was surprisingly slow, and traced it to this. Pexpect by default does a delay of 50ms before evaluating every line, which adds up to 5 seconds in a 100-line cell.

It adds a noticeable delay to kernel startup as well, as the build_cmds() produces about 50 lines to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant