fromscratch icon indicating copy to clipboard operation
fromscratch copied to clipboard

High HDD usage when deleting or writing.

Open algj opened this issue 6 years ago • 3 comments

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.

algj avatar Feb 15 '19 10:02 algj

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

Kilian avatar Feb 15 '19 10:02 Kilian

Hard Disk usage.

algj avatar Feb 15 '19 10:02 algj

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.

algj avatar May 20 '19 16:05 algj