Alt
Alt
Yes, sorting by the date takes time, since it requires to call [`stat`](https://en.wikipedia.org/wiki/Stat_(system_call)) for each file to get the file info. But I see no speed difference between the approach...
BTW, there is [`QFileInfo::setCaching(bool enable)`](https://doc.qt.io/qt-6/qfileinfo.html#setCaching), [`QFileInfo::stat()`](https://doc.qt.io/qt-6/qfileinfo.html#stat): ```c++ for (auto &fileInfo : fileInfoList) { fileInfo.setCaching(true); // or fileInfo.stat(); // takes 200 ms total } ``` ~The functions can speed up the...
Since sorting by the date takes 2 ms and ```c++ QElapsedTimer timerGoTakeMtime; timerGoTakeMtime.start(); for (auto &fileInfo : fileInfoList) { fileInfo.lastModified(); } qDebug()
Although, in my case 7-zip (an other archive viewers) extracts the image first to a temp folder, an only then open it (`%HOMEPATH%\AppData\Local\Temp\7zO40771AFE`) with the image viewer. But theoretically from...
Or with the context menu of a zip file "Open with..." and select qimgv to open the first image inside with the ability to scroll through all images.
The example: - 1-8, 11, 10, 9, 12+  [[twitter] SpaceX_2.zip](https://github.com/easymodo/qimgv/files/7874890/twitter.SpaceX_2.zip) (Note: 7zip in zip)
It requires to compare `btime`, if `mtime` of both files are equal. ```c++ void sortByMtime(bool asc = true) { std::sort(fileEntryList.begin(), fileEntryList.end(), [asc](const FileEntry& a, const FileEntry& b) { bool result...
This sorting looks to be equal to sorting of Windows Explorer. Note: A list is sorted by desc is not equal to a reversed list is sorted by asc.
I have also expected non-callback API of this lib. Maybe I have missed something, but this simple code works for me: ```js for await (const row of getRows(db, sql)) {...
```js const db = await open({ filename: "history.sqlite", // use Chromium DB driver: sqlite3.Database }); const sql = `SELECT * FROM urls`; let now, total, loopTime1, loopTime2; loopTime1 = 0;...