Rewrite of piper.yazi optimized for speed #173
alberti42
started this conversation in
2. Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everybody,
I wanted to share with you a rewrite of the original
piper.yaziplugin. This is one of my favorite plugins, but it is really laggy because it forces one to recompute the entire preview from scratch each time, especially when scrolling through the document.I wanted to be able to scroll through large files of a few MB, and it was impossible with the current plugin. So I decided to explore whether we can get much faster by managing cache. The result is quite satisfactory. It is many times faster than the original.
Take a look! https://github.com/alberti42/faster-piper.yazi On the GitHub page, you find more details about the supported features.
PS: This is my first Yazi plugin. So, if you know better methods (more Yazi-like) to achieve the same result, I would love to hear it.
Beta Was this translation helpful? Give feedback.
All reactions