mdelobelle / metadatamenu

For data management enthusiasts : type and manage the metadata of your notes.
https://mdelobelle.github.io/metadatamenu
MIT License
520 stars 27 forks source link

Rate limiter #581

Open matthewturk opened 7 months ago

matthewturk commented 7 months ago

Hi! I wanted to inquire if you thought it would be possible to add a ratelimiter to some of the events. I'm thinking specifically the events subscribed to in FieldIndex.ts, such as the vault modify, resolved and so on. I have done some informal profiling on my vault, and found that with metadatamenu enabled, keypresses trigger some of these events, which adds a fair bit of latency to typing etc. And I'd really like to continue using metadatamenu -- but perhaps I've also misdiagnosed the issue.

mdelobelle commented 7 months ago

Hi! I've tried to debounce the reindexing a couple of month ago, but it wasn't very stable. Maybe I'll give it another try when the 0.8.0 will be stable

matthewturk commented 7 months ago

@mdelobelle Thank you! If you think you'd like help or testing, happy to oblige.

mdelobelle commented 7 months ago

Thanks a lot. I'm a little bit cautious with the new beta version (because of a massive refactoring) so any feedback will be appreciated. ping me on discord if you want more fluid conversation (matelob)