Performance prohibitively slow with RadioList in float container

Open
#1,981 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
cli, performance

Research direction

Start by reproducing the reported delay with a 50-item RadioList inside a float container, then compare arrow-key response with and without the float and dialog. Profile the full-screen layout application to identify where time is spent during selection updates and dialog display. Done means isolating a specific bottleneck and documenting or implementing a measurable performance improvement.

Written by the indexing model from the issue text.

Description

I have a float container with a 50-item RadioList over my full-screen layout app. It seems like performance gets twice as slow - 2-3 second respond time to arrow key selections in the RadioList - in the float container. Then if we pop a simple yes/no dialog things get even slower. What techniques can I use to optimize performance for these?

Dominant language
Python
Stars
10.6k
Forks
815
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from prompt-toolkit/python-prompt-toolkit

All issues in prompt-toolkit/python-prompt-toolkit

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.