Skip to content

Commit

Permalink
[performance] SquashFS: Disable redundant and interfering buffering f…
Browse files Browse the repository at this point in the history
…or SquashFS image reads
  • Loading branch information
mxmlnkn committed Sep 9, 2024
1 parent 29e3d17 commit 880f01d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/ratarmountcore/SquashFSMountSource.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def __init__(
**options
# fmt: on
) -> None:
self.rawFileObject = open(fileOrPath, 'rb') if isinstance(fileOrPath, str) else fileOrPath
self.rawFileObject = open(fileOrPath, 'rb', 0) if isinstance(fileOrPath, str) else fileOrPath
self.rawFileObject.seek(0)
offset = findSquashFSOffset(self.rawFileObject)
if offset < 0:
Expand Down

0 comments on commit 880f01d

Please sign in to comment.