reor
reor copied to clipboard
CPU usage spiking to 100% when typing notes
I guess Reor uses some kind of real-time system to analyze the notes and transform them into word embeddings. It works well but I noticed that when typing, the CPU usage will jump to 100% (on Linux at least), using all cores at the same time, making the text input freeze sometimes.
Would there be a way to ensure that Reor does not use all CPU resources available by default, so that it does not slow down the reactivity of the system?
Not sure if it is related but on MacOS Reor grinds to a halt with spinning ball when typing in CAPS.
Thank you for opening this.
Reor works by periodically writing the contents of the editor to the filesystem and at the same time embedding those contents into the vector database. Perhaps we could think about implementing a customisable indexing period to get rid of this slowness. @ekianjo what cpu/ram/gpu do you have?
@andreofthecape this is strange. Have you tried with the latest release and experience the same thing?
@samlhuillier Currently on 0.1.50 and not experiencing the issue anymore. Thanks!
@samlhuillier using Reor on a bunch of different machines right now - this is especially noticeable when using Reor within a VM (4 CPUs, 10 GB RAM) but still visible if you run a htop on the previous version 0.1.48 (did not try 0.1.50 yet)
FWIW, I'm experiencing this on 0.1.51 using a Mac.
We have made changes to fix this which will be released later on today.
Hey @ekianjo @callado4 this should now be fixed! Download the new version and drop us a message to confirm that there's no longer lag!
So far so good for me @samlhuillier, I really appreciate the fix. Now I'm not getting some annoying delays while typing which tends to affect my mental flow.
I would suggest to wait for @ekianjo to give some feedback just because the original issue was for Linux and I wouldn't want it to be closed without confirming that use case (and I'm on a Mac)
@callado4 Amazing! Glad to be of service to your mental flow! Would love to know too if you have any other feedback/new features you'd want added...
@samlhuillier let me give it a spin, will let you know how it feels
@samlhuillier looks to be better in the latest version 0.154, so you can close this ticket :-)
Great!