Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Qt to 6.6 #519

Open
AlttiRi opened this issue Oct 12, 2023 · 1 comment
Open

Update Qt to 6.6 #519

AlttiRi opened this issue Oct 12, 2023 · 1 comment

Comments

@AlttiRi
Copy link

AlttiRi commented Oct 12, 2023

Qt 6.6 have fixed the bug that each call of taking file's mtime performs slow OS' call. That results in very slow sorting by time.
So, opening of an image in a folder with thousands of images will faster hundreds times.

I wrote about it here: #290 (comment)

More info here:
https://forum.qt.io/topic/133954/either-qfileinfo-caching-does-not-work-or-just-its-methods-are-unreasonable-very-slow
https://bugreports.qt.io/browse/QTBUG-100349

https://www.qt.io/blog/qt-6.6-released


You only need to use QTimeZone::UTC in a sorting function.

Quite old but in qt6.6 QDateTime::lastModified() gained a new parameter 'QTimeZone' where you can pass QTimeZone::UTC to avoid conversion to the local time.
See also https://codereview.qt-project.org/c/qt/qtbase/+/437009

@AlttiRi
Copy link
Author

AlttiRi commented Oct 14, 2023

For example, opening an image in a folder with 160k images takes 13 seconds currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant