Kaydet (Commit) ed08ddb3 authored tarafından Andras Timar's avatar Andras Timar

fdo#53588 Assume cdir being in the last 1k of the file to speed-up search

Change-Id: I25291c52d9f0117c70c48781c2eb575bb6b374ff
üst 3e635c33
......@@ -264,6 +264,7 @@ static bool findCentralDirectoryEnd(StreamInterface *stream)
if (!stream)
return false;
stream->sseek(0, SEEK_SET);
if (stream->sseek(-1024, SEEK_END)) stream->sseek(0, SEEK_SET);
try
{
while (stream->stell() != -1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment