Skip to content
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

Open
algj opened this issue Feb 15, 2019 · 3 comments
Open

High HDD usage when deleting or writing. #80

algj opened this issue Feb 15, 2019 · 3 comments

Comments

@algj
Copy link

algj commented Feb 15, 2019

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.

@Kilian
Copy link
Owner

Kilian commented Feb 15, 2019

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'.

@algj
Copy link
Author

algj commented Feb 15, 2019

Hard Disk usage.

@algj
Copy link
Author

algj commented May 20, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants