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

Fix speed regression in paletted raster renderer #56677

Closed
wants to merge 1 commit into from

Conversation

nyalldawson
Copy link
Collaborator

Don't try to condense classes if we have many classes, it's too slow to do and results in many-minute hangs in the UI for large class counts

Fixes #56652

This is a bit of a quick-and-nasty fix -- possibly we could fix the issue in a better way with a hash lookup, but I couldn't get that working without still incurring a multi-second hang. I'm not sure what the real-world consequences are for NOT condensing classes here.

@elpaso do you have any insights? This was introduced as part of the raster attribute table work.

Don't try to condense classes if we have many classes, it's too
slow to do and results in many-minute hangs in the UI for large
class counts

Fixes qgis#56652
Copy link

github-actions bot commented Mar 4, 2024

🪟 Windows builds ready!

Windows builds of this PR are available for testing here. Debug symbols for this build are available here.

(Built from commit 6d378d1)

@agiudiceandrea
Copy link
Contributor

It looks like the issue fixed with this PR also makes QGIS hang for a very long time when importing paletted GeoTIFF layers (e.g. the output layers of some GRASS-GIS processing algorithms).

@elpaso
Copy link
Contributor

elpaso commented Mar 9, 2024

@nyalldawson TBH I really don't like this band-aid. Let me see if I can find a better fix.

@elpaso
Copy link
Contributor

elpaso commented Mar 9, 2024

@nyalldawson see: #56784

Copy link

The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check

  • that all unit tests are passing

  • that all comments by reviewers have been addressed

  • that there is enough information for reviewers, in particular

    • link to any issues which this pull request fixes

    • add a description of workflows which this pull request fixes

    • add screenshots if applicable

  • that you have written unit tests where possible
    In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this pull request.
    If there is no further activity on this pull request, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Mar 24, 2024
Copy link

github-actions bot commented Apr 1, 2024

While we hate to see this happen, this PR has been automatically closed because it has not had any activity in the last 21 days. If this pull request should be reconsidered, please follow the guidelines in the previous comment and reopen this pull request. Or, if you have any further questions, just ask! We love to help, and if there's anything the QGIS project can do to help push this PR forward please let us know how we can assist.

@github-actions github-actions bot closed this Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport queued_ltr_backports Queued Backports backport release-3_36 stale Uh oh! Seems this work is abandoned, and the PR is about to close.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Paletted/Unique values" raster rendering is extremely slow using QGIS 3.34.4 / QGIS 3.36.0
3 participants