[PR #18287] Reduce malloc churn for console calls <=128KiB #31498

Open
opened 2026-01-31 09:47:40 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/18287

State: closed
Merged: Yes


This increases the console IO buffer size to retain at least 128KiB as this matches the default buffer size of cat. This avoids allocator churn due to constantly freeing and reallocating buffers. In the future this should ideally use a better suited, cheap allocator.

Closes #18286

**Original Pull Request:** https://github.com/microsoft/terminal/pull/18287 **State:** closed **Merged:** Yes --- This increases the console IO buffer size to retain at least 128KiB as this matches the default buffer size of `cat`. This avoids allocator churn due to constantly freeing and reallocating buffers. In the future this should ideally use a better suited, cheap allocator. Closes #18286
claunia added the pull-request label 2026-01-31 09:47:40 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31498