Skip to content

console options optimization#5985

Merged
willmcgugan merged 1 commit into
mainfrom
console-options
Jul 25, 2025
Merged

console options optimization#5985
willmcgugan merged 1 commit into
mainfrom
console-options

Conversation

@willmcgugan

Copy link
Copy Markdown
Member

According to @fancidev auto-detecting the console size is slow.

This change avoid that by using Textual's cached size.

Probably not a big win, as the new Content class doesn't call console.size. But might help anywhere we render Rich renderables.

@willmcgugan willmcgugan merged commit eff79a5 into main Jul 25, 2025
23 checks passed
@willmcgugan willmcgugan deleted the console-options branch July 25, 2025 07:36
@fancidev

Copy link
Copy Markdown
Contributor

Thanks for the quick fix!

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.

2 participants