On Oct 09 20:26:13, [email protected] wrote:
> This is a new attempt at fixing vi(1) recovery by actually writing
> to the recovery file. Previously I restored the SIGALRM method that
> was deleted in the 90's but wondered if that was still the best way
> to handle this. Checking and syncing to the recovery every 2 minutes
> seems arbitrary and overly cautious.
>
> This attempt takes it to the other direction. I'm writing each
> change to the recovery file immediately after the in-memory database
> is modified. Though, I can see that this might have a noticeable
> impact on slower file systems.
This recovers close to what the file was at the KILL moment.
The writing impact is still bareable e.g. on a SD card in a Raspberry
(that is to say, slow, but not much slower than without this).
Thank you!
Jan