Skip to content

Use monobound binary search in strategic places - #14

Open
lonvia wants to merge 1 commit into
fossgis:masterfrom
lonvia:monobound-binary-search
Open

lonvia wants to merge 1 commit into
fossgis:masterfrom
lonvia:monobound-binary-search

Conversation

@lonvia

@lonvia lonvia commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

One of mmd's performance fixes ported over from his branch. See mmd-osm@3faedf0

I had this and #13 running as patches on gall, thinking that they don't do much. However, since rolling out the latest master this morning with the two patches removed there was a noticeable drop in throughput: https://munin.gall.openstreetmap.de/localdomain/localhost.localdomain/osm_db_request_count.html

@lonvia
lonvia force-pushed the monobound-binary-search branch from 79cd4d7 to 190f982 Compare November 24, 2026 16:02
@cldellow

Copy link
Copy Markdown

I pulled this into my fork to test it. It passed the fork's fuzz and property-based tests.

Performance depended on architecture: it was about 2% faster on x86 and 2% slower on ARM (link to comment that gives a flavour of the performance differences)

I imagine production and most people run x86, though, so it's likely an overall improvement.

(I only use ARM because it decreases GitHub runner variability -- ARM runners use exactly 1 VM type and past timing runs have shown them to have less variability. x86 runners have at least six different hardware types across multiple generations of AMD/Intel chips and past timing runs have shown them to have more variability, even on repeated timing runs within the same instance.)

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