Skip to content

tool_cb_wrt: stop alloc/free for every chunk windows console output#18233

Closed
bagder wants to merge 3 commits into
masterfrom
bagder/windows-console
Closed

tool_cb_wrt: stop alloc/free for every chunk windows console output#18233
bagder wants to merge 3 commits into
masterfrom
bagder/windows-console

Conversation

@bagder
Copy link
Copy Markdown
Member

@bagder bagder commented Aug 8, 2025

Instead realloc to the largest buffer and keep that for reuse during the entire lifetime. Written blindly because I don't develop on Windows.

@bagder bagder added cmdline tool Windows Windows-specific labels Aug 8, 2025
Instead realloc to the largest buffer and keep that for reuse during the
entire lifetime. Written blindly because I don't develop on Windows.
@bagder bagder force-pushed the bagder/windows-console branch from 4e77051 to 92835eb Compare August 8, 2025 21:20
@bagder
Copy link
Copy Markdown
Member Author

bagder commented Aug 8, 2025

This needs to be verified to work for real by someone on Windows before I dare to merge...

@bagder bagder marked this pull request as ready for review August 10, 2025 22:16
Comment thread src/tool_cb_wrt.c Outdated
Comment thread src/tool_cb_wrt.c Outdated
@jay
Copy link
Copy Markdown
Member

jay commented Aug 11, 2025

other than that looks ok

bagder and others added 2 commits August 11, 2025 09:15
fix

Co-authored-by: Jay Satiro <raysatiro@yahoo.com>
fix

Co-authored-by: Jay Satiro <raysatiro@yahoo.com>
@bagder
Copy link
Copy Markdown
Member Author

bagder commented Aug 11, 2025

thanks @jay !

@bagder bagder closed this in a46944a Aug 11, 2025
@bagder bagder deleted the bagder/windows-console branch August 11, 2025 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants