i got the real gmail scan working, i started trying to make it faster since fetching emails one by one was taking way too long. i changed the imap scanner to fetch messages in batches instead, so it doesnt have to make a separate network request for every single email. testing it with my actual inbox showed that scanning 30 messages now takes around 2-3 seconds, which is way better than before.the weird part is the gmail connection itself is kinda messy. connecting can take anywhere from a couple seconds to 20+ seconds, but that doesn’t seem to depend on how many emails i’m scanning. rn the actual scanning is pretty fast, so i’m gonna leave the connection latency as a limitation and focus on keeping one connection alive once the main app is built.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.