Commit graph

2 commits

Author SHA1 Message Date
Tavi
52b79bf526
LinkScannerService: don't repeatedly scan
- have the system only send 10 events a second, instead of 1000
- don't scan the same package+class name more than once a second
- put each event view scanner on its own thread keyed by package+class
- don't scan if there is already an existing thread for the package+class

this can still cause high cpu usage on views with lots of text
especially if the user continually interacts with it
but is overall much better

to recap:
- a given package+class can only be scanned at most once a second
- a given package+class can only have one scanner at a time
- text to scan will not be scanned if already scanned
- domains to scan will not be scanned if already scanned

Signed-off-by: Tavi <tavi@divested.dev>
2024-05-25 18:49:56 -04:00
Tavi
8d9314ef97
Add the Cloudflare mirror and bump version
Signed-off-by: Tavi <tavi@divested.dev>
2024-05-17 09:20:56 -04:00