1 day ago · Tech · hide

Spectacle is KDE’s versatile screenshot tool. It lets you take screenshots and screencasts, including system and microphone audio. You can add annotations (arrows, circles, text, etc) to screenshots, find QR codes in them, extract text, and then copy it to clipboard, share it to social media or elsewhere. Take a region screenshot, and annotate it right then and there! Having lots of features comes with a few downsides, however. One of them is startup time. When tasked to investigate why it was slow, I fired up my favorite perf visualizer: Hotspot. Its flame graph makes it easy to spot long tasks at a glance. The first big chunk I noticed was Tesseract, the OCR library it uses. Extracting text was already done in a separate thread but initialization blocked the main thread quite a long time. It cannot just load it on demand because the language settings and some parts of the UI depend on it. I therefore moved Tesseract entirely into its own thread. This way, Spectacle can also already…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town