Skip to content

Increase read buffer size from 4KB to 64KB#4977

Merged
fornwall merged 1 commit intotermux:masterfrom
xJonathanLEI:fix/read_buffer_size_too_small
Feb 21, 2026
Merged

Increase read buffer size from 4KB to 64KB#4977
fornwall merged 1 commit intotermux:masterfrom
xJonathanLEI:fix/read_buffer_size_too_small

Conversation

@xJonathanLEI
Copy link
Contributor

Fixes #4976.

I've tested very large content streaming scenarios (chafa-ing dozens of large images). master lags to a painfully unusable state where the terminal emulator remains unresponsive for up to minutes.

With this patch it's very smooth and scrolling in the multiplexer also works perfectly. 64KB seems a much more sensible size than 4KB it appears.

The small buffer size has caused serious lags in large content use cases
like scrolling on terminal multiplexers.
@fornwall
Copy link
Member

Makes sense to increase the buffer size - 4 KB is quite small. Thanks!

@fornwall fornwall merged commit ef4775b into termux:master Feb 21, 2026
3 checks passed
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.

[Bug]: Emulator lags in unusable fashion with large output from terminal multiplexers

2 participants