Skip to content

Tips for improving performance? #1441

Answered by willmcgugan
adamviola asked this question in Q&A
Discussion options

You must be logged in to vote

There are many things that can impact performance. I'd need to see code to offer any concrete suggestions.

Textual will generally avoid repainting more than it needs to. If you change the state multiple times, it should still only result in a single repaint.

I'd start by profiling first. Try PyInstrument for a coarse profile, which should tell you where the majority of the time is being spend.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
1 reply
@adamviola
Comment options

Answer selected by adamviola
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants