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

Use QCollator for sort library. #1943

Merged
merged 4 commits into from
Dec 12, 2018
Merged

Use QCollator for sort library. #1943

merged 4 commits into from
Dec 12, 2018

Conversation

daschuer
Copy link
Member

This speeds up library access, because we don't need to make a deep copy when calling toLower().

@uklotzde
Copy link
Contributor

uklotzde commented Dec 10, 2018

So many unknown goodies! LGTM 👍

Should we use the same technique in BaseSqlTableModel? Maybe we could even provide our own, reusable StringCollator class in util/string.h that uses a case-insensitive QCollator internally and provides overloaded methods for const QChar* const QString& and for const QStringRef&?

@uklotzde
Copy link
Contributor

I've already prepared something, PR will follow in a moment...

@uklotzde
Copy link
Contributor

daschuer#34

QCollator: Extensions and minor improvements
@daschuer
Copy link
Member Author

Thank you :-)

@uklotzde
Copy link
Contributor

If the CI build succeeds we should merge this nice improvement.

@daschuer
Copy link
Member Author

Thanks.

@daschuer daschuer merged commit 0cab853 into mixxxdj:2.2 Dec 12, 2018
@daschuer daschuer deleted the qcollator branch September 26, 2021 17:36
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

Successfully merging this pull request may close these issues.

2 participants