Forum Archive

print to pythonista console slow

polymerchm

I am developing a fretted instrument chord finder using ui and chordcalc.py (developed by Gek S. Liong). I thought it was real slow, until I figured out that writing to the console from within a UI application is PAINFULLY slow. Just a hint to those trying similar things. Not sure if using @ui.in_background would spped things up. Will report.

dgelessus

If you are printing out multiple lines at the same time, it is much faster to print a multi-line string instead. Each print call causes a short wait, but the number of lines printed by a single statement do not affect efficiency.