This PR brings major speed improvements to rollback. During rollback the entire file is loaded in memory to remove a single line.
In this update, a line is read from the end of file. If the target date is equal to the date in the line, that line is truncated from file. This is several orders faster and more memory efficient.
ba69a38c0 (HEAD -> dev, origin/dev) Fix broken test on windows
80ce110e2 (tag: v5.3.1) Bump to version 5.3.1
bdfe00e02 Added tests for defs.py:deleteLastLineByDate
9513a986c
Added new function defs.py:deleteLastLineByDate
defs.py:rollback uses deleteLastLineByDate under the hood.
86fe5af89
Use slice instead of split being slightly faster.
Decode only the date string instead of entire line.
This PR brings major speed improvements to rollback. During rollback the entire file is loaded in memory to remove a single line. In this update, a line is read from the end of file. If the target date is equal to the date in the line, that line is truncated from file. This is several orders faster and more memory efficient.
ba69a38c0 (HEAD -> dev, origin/dev) Fix broken test on windows
80ce110e2 (tag: v5.3.1) Bump to version 5.3.1
bdfe00e02 Added tests for defs.py:deleteLastLineByDate
9513a986c
86fe5af89