rainyl / Flow.Launcher.Plugin.ClipboardR

A Flow Launcher Plugin which saves your clipboard activity.
Apache License 2.0
20 stars 4 forks source link

3+ sec freeze after choosing a result #10

Closed Chaoscontrol closed 7 months ago

Chaoscontrol commented 9 months ago

As mentioned in title. When choosing a result Flow freezes completely for a time. For texts it's about 3s. For images it take quite longer, 6s or more. Notice the keyboard cursor for the freeze duration: https://file.coffee/u/oHM_qqCdvw5Bk61685aM3.mp4

Here my settings: image image

Chaoscontrol commented 7 months ago

Issue fixed thanks to the massive help debugging from Elven Princess on Discord.

Detected that my db was about 500MB. When launching Flow it was loading it all in RAM, making it use 5.5GB instantly, and even freezing it. Whenever pasting from ClipboardR the delays amounted to 10s for text and 20s for images. We tested just deleting the db and it all went away, no delays anymore. I wasn't using "CacheImages" setting though as it was causing a different issue for me.

Still, after using CacheImages with the 500MB db, pasting text was still taking 10s anyway, so it was unrelated. It seems the way the db it's handled won't allow large db for now and will need clearing once in a while.