Closed xtreding closed 2 years ago
Make sure you use latest v7.1.3 and try without aurora package. If you start up 30000 bars at the same time without any semaphore, then high cpu usage is expected and may be not due to mpb. I can't reproduce on my machine because my screen fits about 70 lines, but even with 70 simultaneous bars there is no performance issues.
Hi guys! First of all, the project is amazing! Thank you for your efforts!
My problem
I noticed that if I create more than a hundreds progress bars, then my service consumes about 99% CPU.
Conditions
I use multi progress bars in CLI tool that uploads files into API. Usually my use-case is to upload thousands files (~30,000). I create one main progress bar that shows whole operation progress N/30,000, N+1/30,000 and I create one progress bar per file with onComplete option.
As the result I have the following picture in the terminal:
Do you have any solution - how can I keep records with "✓ done" (I can't use BarRemoveOnComplete()) and don't face performance issues? Thank you!
Code example