Closed philmitchell closed 2 years ago
This relates to this issue.
Using FileHandle to read contents of tarfile does avoid reading entire file into memory. However, without autoreleasepool, the data buffers are not released fast enough to avoid a temporary (potentially large) increase in memory usage.
FileHandle
autoreleasepool
Cf. Use Local Autorelease Pool Blocks to Reduce Peak Memory Footprint
This relates to this issue.
Using
FileHandle
to read contents of tarfile does avoid reading entire file into memory. However, withoutautoreleasepool
, the data buffers are not released fast enough to avoid a temporary (potentially large) increase in memory usage.Cf. Use Local Autorelease Pool Blocks to Reduce Peak Memory Footprint