Closed ChurchTao closed 5 months ago
I perform performance testing on clipboard-rs
@ChurchTao How is the performance on clipboard-rs
without Tauri?
My performance results on a 5MB screenshot (2560x2880)
clipboard-rs
ctx.get_image()
: 88msctx.get_image()
: 88msget_image()
: 1.35sget_image()
+ convert to bytes: 5.56sLooks like getting the image is fast (indifferent between debug and release mode). Converting bytes / saving takes a lot more time in debug mode. I believe it's fine. In release mode it's really fast.
The blocking problem can be fixed by making the read_image()
tauri commands async. I will fix it.
Originally posted by @Tester-957 in https://github.com/CrossCopy/tauri-plugin-clipboard/issues/21#issuecomment-2053622906