anufrievroman / calcure

Modern TUI calendar and task manager with minimal and customizable UI.
https://anufrievroman.gitbook.io/calcure
MIT License
1.51k stars 43 forks source link

Use StringIO instead of string concatenation. #72

Closed jose1711 closed 9 months ago

jose1711 commented 9 months ago

This may bring a huge performance benefit while loading a large .ics file for platforms where the creation of a new string object is costly. Inside Termux installation a read_lines function call dropped from 10 seconds to approx. 125 ms while parsing a 680 kB ics file.

anufrievroman commented 9 months ago

Thank you, that looks awesome!