On Thursday, 14 January 2021 at 20:23:37 UTC, dog2002 wrote:
About 1000 large files.
I want to replace several first bytes in all the files, so I
just copy the remaining bytes into a new file. Might this be
the reason for high memory consumption? If so, is there a way
not to copy the entire file, just delete first bytes and write
the replaced bytes into the beginning of the file?
I use Windows x64.
What code are you using to copy the bytes? If you're reading the
whole file into memory at once, that will consume a lot of memory.