Skip to content

Improve decode performance - #411

Open
filvyb wants to merge 1 commit into
osmcode:masterfrom
filvyb:perf-improve
Open

filvyb wants to merge 1 commit into
osmcode:masterfrom
filvyb:perf-improve

Conversation

@filvyb

@filvyb filvyb commented Nov 20, 2026

Copy link
Copy Markdown

This PR improves decode performance by about ~8% by returning early in build_tag_list_from_dense_nodes on tagless nodes, calling add_size only once in add_tag and returning early in set_user for empty user names.

I tested it on a Mint 8 vCPU VM on my 9800X3D using .osm.pbf Czech Republic, France, North America from GeoFabrik with OSMIUM_CLEAN_PAGE_CACHE_AFTER_READ=no as the VM is on a SATA SSD where the improvement is about 1-2%. Faster drive should show the cached performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant