Commit b3d0e14
committed
Fix severe perf degradation reading Stored file in Mono
When reading a stored file, ZipFile returns a PartialInputStream
directly instead of wrapping it with a decompression layer.
PartialInputStream handles sharing the underlying stream among
multiple threads by calling Seek() before each read.
Unlike Microsoft's reference implementation, Mono's FileStream
flushes its internal read buffer on every Seek.1 parent e012155 commit b3d0e14
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3778 | 3778 | | |
3779 | 3779 | | |
3780 | 3780 | | |
3781 | | - | |
3782 | | - | |
| 3781 | + | |
| 3782 | + | |
| 3783 | + | |
| 3784 | + | |
| 3785 | + | |
3783 | 3786 | | |
3784 | 3787 | | |
3785 | 3788 | | |
| |||
0 commit comments