Yes, it's more complicated, but the only extra writes are meta-data about the file, it is not written twice.

Yes, I understand your explanation (if really this happens), but even in this case there is an extra write operation (the renaming), which is unnecessary in my opinion. I have explained why...

But actually what happens when Geany saves the changes (made during the edit)? The whole old data is replaced every time? This is not very logic: if you change only a little part of the file then should be changed only that part. This could be accomplished since rsync can do such thing. Maybe there are such applications which use this type of saving. And if there is such saving the "GIO method" does more writes.

Also the miniscule costs of one extra directory write has to be balanced against the cost of running the computer for the time required to reproduce lost data if something goes wrong.

The probability of a "disaster" of this type (during that very short saving time) is so infinitesimally small that does not justify these methods. And again, if you edit a very important document you could use it temporarily for that document. I have data losses some times in my "PC life" but those data are definitively lost because the reasons were others: the failures of HDDs. This is (this was; hopefully the HDDs will disappear soon) the real danger for our data.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/repo-discussions/3697/comments/7641122@github.com>