note-editor icon indicating copy to clipboard operation
note-editor copied to clipboard

Improve search performance

Open windingwind opened this issue 1 month ago • 2 comments

Use debounce for searching Only render decorations within view range Other minor fixes for efficiency

For note with 100k words, before fix it hangs for over 1 minute for searching a single char t, now stably <100ms. Test on MacOS with M2pro

Can test with the book DRACULA: https://gutenberg.org/files/345/345-h/345-h.htm (create note - select all on website - copy - paste - search - type t)

windingwind avatar Dec 05 '25 10:12 windingwind