diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2022-10-31 10:08:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-31 10:08:16 +0100 |
commit | 616d5a89d424391d51becf9b89953199c1f622de (patch) | |
tree | 57e3e960aece2bd4659340fa7f2407d80ecbd846 /etc | |
parent | fb4be98f263be83591af09fb284405314370a564 (diff) | |
download | spack-616d5a89d424391d51becf9b89953199c1f622de.tar.gz spack-616d5a89d424391d51becf9b89953199c1f622de.tar.bz2 spack-616d5a89d424391d51becf9b89953199c1f622de.tar.xz spack-616d5a89d424391d51becf9b89953199c1f622de.zip |
_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
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions