Skip to content

Later tag-index lookups binary-search every entry against the candidates #248

Backlog

Description

@cldellow

Problem

When a statement has several tag filters, collect_ids looks the keys up one after another, and filter_id_list keeps the entries of each later key whose id is among the candidates so far, with a binary search per entry. For a common key such as highway that is millions of searches, nearly all failing: in the maxheight query of #242 over an empty box, the binary searches are about half the time.

Expectation

#1 added Id_Bit_Filter, which rejects most absent ids with one bit test. Using it in front of the binary search here removes most of that cost.


Generated by Claude Code

Activity

  1. added
    query-perf
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    query-perf

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions