erikh / saturn

A calendar for CLI nerds
MIT License
21 stars 0 forks source link

Performance issues #55

Open erikh opened 11 months ago

erikh commented 11 months ago

Gonna keep a running tally of perf issues to resolve. Most of this revolves around google calendar:

erikh commented 11 months ago

The latest version of gcal has a debug mode which helped me isolate that we make a ton of http calls when resolving recurring tasks.

Just making notes here, I know some of the issues in my head, but it helps to have a reminder for some of them.

erikh commented 11 months ago

I am also seeing i/o errors in the 0.4.x series chatting with gcal which causes sui to spin out of control.

erikh commented 11 months ago

I've been looking into this and one of the things I threw in there out of desperation was a call to the fetch API during a record conversion routine, which is likely causing a N*N query (yes, really) and more or less bombing google calendar with requests. I've dumped some of this which gives me educated insight. I'm just not sure what the right solution is, and I've been preoccupied with other more pressing matters, so I'm writing this down so I don't forget.