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

Rendering slow with "LIKE" in vector layer styling #433

Open
PeterPetrik opened this issue Aug 27, 2019 · 5 comments
Open

Rendering slow with "LIKE" in vector layer styling #433

PeterPetrik opened this issue Aug 27, 2019 · 5 comments
Labels

Comments

@PeterPetrik
Copy link
Contributor

profile ios rendering of the rasters

@PeterPetrik
Copy link
Contributor Author

PeterPetrik commented Sep 2, 2019

it looks like it is due to super slow regex evaluation for complex OSM-based maps with a lot of custom rule based renderings.

when nextFeature() logic for pre-filtering the features based on regex is commented out, it is even slower.

@PeterPetrik
Copy link
Contributor Author

test project (qgis relwithdebuginfo)

  • 16k lines, 121 multilines, 51k polygons, 10k points
  • osm (all symbols as simple one color symbols): 18sek features + 100sek labels
  • osm (nice symbols with rule based stuff): 42sek features + 15sek labels
  • osm (only lines, rule based): 40 sek + 15sek labels
  • osm (only lines, simple symbol, no labels): 2 sek
  • only raster bg: 1 sek
  • osm (only minor roads, full symbology, labels): 3sek

looks like the problematic part is other_tags LIKE '%border%' OR other_tags LIKE '%boundary%'
the "LIKE" stuff

Screenshot 2019-09-06 at 10 54 51

Screenshot 2019-09-06 at 11 01 51

@PeterPetrik PeterPetrik changed the title speed up ios rendering Rendering slow with "LIKE" in vector layer styling Sep 6, 2019
@PeterPetrik
Copy link
Contributor Author

PeterPetrik commented Sep 6, 2019

WORKAROUND: instead of other_tags LIKE '%border%' better to use other_tags ~ 'border'

@PeterPetrik
Copy link
Contributor Author

  • saber/osm-defultst: 30 sek
  • saber/osm-defultstyle-nolabel: 5 sek
  • saber/osm-defultstyle-nolike: 1 sek
  • saber/osm-defultstyle-nolike-tilde: ~ 2 sek

@saberraz
Copy link
Contributor

This has been addressed in QGIS. We need an update of the SDK.

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

No branches or pull requests

2 participants