nixpkgs/pkgs/build-support
adisbladis ef3ed45c12
nix-gitignore: Optimise performance
There are a few operations in this library that naively runs on every
iteration while they could be cached.

For a simple test repository with a small number of files and ~1000
gitignore patterns this brings memory usage down from ~233M to ~157M
and wall time from 2.6s down to 0.78s.

This should scale similarly with the number of files in a repository.
2020-12-07 14:14:20 +01:00
..
2020-06-01 13:59:20 +01:00
2020-12-02 14:57:23 +01:00
2020-09-21 08:30:58 +10:00
2020-10-24 16:43:05 +05:30
2020-03-09 02:11:45 -04:00
2020-11-24 12:42:06 -05:00