You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
Even if you supply MmapByteSource's to FileByFileDeltaGenerator, it seems to replace them with RandomAccessFileByteSource's.
https://github.com/google/archive-patcher/blob/v2/generator/src/main/java/com/google/archivepatcher/generator/FileByFileDeltaGenerator.java#L108-L109
https://github.com/google/archive-patcher/blob/v2/shared/src/main/java/com/google/archivepatcher/shared/bytesource/ByteSource.java#L61-L63
The current RandomAccessFileByteSource's implementation seems to suffer extremely hard from seeks, an extremely common operation.
Simply swapping ByteSource.fromFile to always return a MmapByteSource greatly improves performance.
The text was updated successfully, but these errors were encountered: