-
-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High HDD usage when deleting or writing. #80
Comments
hard disk usage or memory usage? In the future, an upgrade of Codemirror (the underlying text editor) is planned which might help with the double keypress/visual updating issue. A second is a long time. A second of delay means that you can easily close Fromscratch before your change has made its way to disk, even when just typing (with your hands on the keyboard, there's ~300ms between ending a sentence and typing cmd/ctrl+q, closing the app. That means that only stuff changed 700ms ago got saved) We could throttle saving by say 50ms, but in testing that it hasn't been impactful enough to change. We could also switch from synchronous saving of the data to asynchronous saving, but that comes with the risk of overwriting more recent changes due to 'random computer stuff'. |
Hard Disk usage. |
Bump. Is it fixed? I have been using HDD, not SSD, so everytime I wrote a letter it instantly tried to write to hard disk and waited until it has finished writing to file and continued with other letters I quickly wrote, slowly writing it letter by letter to hard disk. I suppose it works like that. |
When holding backspace or holding any key for a second or more hard disk usage goes pretty high.
Also you can't see how much you you're deleting when holding backspace or when typing/holding any other key, unless you release that key then you'll see the output.
Possible solution: Delay saving stuff: wait at least 1 second after a key is clicked, after 1 second check if anything has changed. If not, write that change to disk.
The text was updated successfully, but these errors were encountered: