Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chunk writes on Windows #3644

Merged
merged 3 commits into from
Nov 7, 2023
Merged

Conversation

davep
Copy link
Contributor

@davep davep commented Nov 7, 2023

Fixes #2548 by adding a workaround for python/cpython#82052.

davep added 3 commits November 7, 2023 14:24
This is experimental. I think, ideally, we'll do this by finding an optimal
buffer size and writing based on that, but for the moment let's just try
line-by-line as that's easy.

This will be used to test against the tool I've made that lets me recreate
the issue documented in Textualize#2548; if this does the job we'll take this further.
First we tested this by splitting the output by lines; that worked but it
could be faster. So now we're going to take the problematic buffer
size (32KiB), assume a reasonable worst case of every character heading out
being 3 bytes in size, and chunking the output based on that.

In other words, experiment for Textualize#2548 take two.
@davep davep added bug Something isn't working Task labels Nov 7, 2023
@davep davep self-assigned this Nov 7, 2023
@davep davep merged commit c7cf028 into Textualize:main Nov 7, 2023
16 checks passed
@davep davep deleted the chunk-writes-on-windows branch November 7, 2023 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Line drawing artefacts in Tree on Windows, in Windows Terminal
2 participants