smoothbrain-ai / smoothbrain-anki

SmoothBrain is an Anki plugin that fetches Readwise highlights and makes flashcards using OpenAI GPT.
39 stars 6 forks source link

Prevent freezing while syncing by only updating UI once #7

Closed alexbowe closed 1 year ago

alexbowe commented 1 year ago

Currently syncing/querying freezes Anki pretty badly, even though they are meant to be background threads. I think the reason for this is that it spawns too many of them.

We should do all the querying single background thread for now (we can add multithreading using non-Anki multithreading primitives later), and implement a progress bar (based on how many readwise pages we have gone through).

This will be less of an issue after #3 and/or #4.