Matches https://github.com/ilyagr/pijul-clone as of now, might become out of sync

Simplification of missing context repairs

Missing contexts were previously done on each individual hunk, which could be highly inefficient in some cases. The complexity was in O(p·h), where p is the size of the patch and h is the size of history, in the worst case.

This patch fixes this by doing all the context repairs in a single pass at the end of the apply function, which now has complexity O(h). Since the previous solution was to use caches, these are no longer necessary and the memory usage has also improved.

Created by  pmeunier  on December 18, 2023
OXZVZDQZEVP7NV3HS6HK5QA7RUD35ODVQ3LL7PWJHTS7DEFM3XTAC
Dependencies
In channels
main
Change contents