Skip to content

Commit

Permalink
kramv - speedup normal loading
Browse files Browse the repository at this point in the history
  • Loading branch information
alecazam committed Sep 9, 2024
1 parent 4e9d057 commit b3d7cce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kramv/KramViewerBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,7 @@ bool Data::loadFileFromArchive()
if (hasNormal) {
normalFilename = name;

bool isNormalUncompressed = normalEntry->compressedSize == entry->uncompressedSize;
bool isNormalUncompressed = normalEntry->compressedSize == normalEntry->uncompressedSize;

if (isNormalUncompressed) {
KPERFT("ZipExtractRawNormal");
Expand Down Expand Up @@ -1512,7 +1512,6 @@ bool Data::loadFileFromArchive()

//---------------------------------

// NSArray<NSURL*>* urls_ = (NSArray<NSURL*>*)_delegate._urls;
string archiveURL = _urls[file.urlIndex];
_archiveName = toFilenameShort(archiveURL.c_str());

Expand Down Expand Up @@ -2538,7 +2537,7 @@ bool Data::handleEventAction(const Action* action, bool isShiftKeyDown, ActionSt
else if (action == _actionPerf) {
Perf* perf = Perf::instance();

bool isCompressed = false;
bool isCompressed = true;
if ((!_showSettings->isPerf) && perf->start("kramv", isCompressed)) {
_showSettings->isPerf = true;
}
Expand Down

0 comments on commit b3d7cce

Please sign in to comment.