note-editor
note-editor copied to clipboard
Improve search performance
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)