Skip to content

Conversation

@peso
Copy link
Collaborator

@peso peso commented Nov 13, 2025

Wrapping at small widths cause excessive memory usage when printing Unicode, so set a minimum width of text of 40.

Wrapping at small widths cause excessive 
memory usage when printing unicode,
so set a minimum width of text of 40.
@peso
Copy link
Collaborator Author

peso commented Nov 13, 2025

I did try to replace write!() with put or put_str, as suggested in issue #83, but the effect was not noticeable. Both memory and cpu usage were within 1% of before the change.

@peso peso merged commit ffa542a into git-bahn:master Nov 14, 2025
5 checks passed
@peso peso deleted the min-wrap-width branch November 25, 2025 09:36
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.

3 participants