I tested out a little experiment about if the gmail api could be used in goroutines, and it looks like it can...
It made the query process waaaayyy faster, so I think that it will be very worth it to make the cache and
MsgHelper threadsafe, and have fetchMessages just spawn a goroutine per message it's trying to get.
I tested out a little experiment about if the gmail api could be used in goroutines, and it looks like it can...
It made the query process waaaayyy faster, so I think that it will be very worth it to make the cache and MsgHelper threadsafe, and have fetchMessages just spawn a goroutine per message it's trying to get.