Closed H0R5E closed 2 years ago
this comes from the underlying readchar
libary which has a while: True
loop in the windows implimentation. This is whats hogging all the CPU. (see https://github.com/magmax/python-readchar/issues/42)
The new v4.0.0
fixes this but is only in pre-release right now. You can however test if it solves this issue if you want.
Sure, I'll give it a try.
than use this to update your readchar version:
pip install -U --pre readchar
Solved! Looking forward to the full release.
closed with the latest readchar
release
Hi,
I noticed that when python-inquirer is waiting for input it is using a lot of CPU (probably a whole CPU thread) while waiting for input. I took these screenshots below:
The version I am running is:
inquirer 2.7.0 py_0 conda-forge
It's in a conda environment being run in PowerShell on Windows 10 Pro.
Is this expected behaviour? Is there anyway to make it less hungry?
Many thanks,
Mat