79820692

Date: 2025-11-15 09:06:44
Score: 1.5
Natty:
Report link

My guess is the main bottleneck is writing to IO. The way to speed things up is buffering frames correctly if you are not already. Instead of printing line by line, generate the whole frame/screen and write it at once. Second thing is to use asynchronously generate the frame and write to IO, or use different threads/processes for each. However, It's hard to see what's going wrong without a minimal code example.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: mqqz