spack/lib
Harmen Stoppels 616d5a89d4
_replace_prefix_bin performance improvements (#33590)
- single pass over the binary data matching all prefixes
- collect offsets and replacement strings
- do in-place updates with `fseek` / `fwrite`, since typically our
  replacement touch O(few bytes) while the file is O(many megabytes)
- be nice: leave the file untouched if some string can't be
  replaced
2022-10-31 10:08:16 +01:00
..
spack _replace_prefix_bin performance improvements (#33590) 2022-10-31 10:08:16 +01:00