Skip to content

tp: add HyperLogLog and compute per-column cardinality estimates#5156

Draft
LalitMaganti wants to merge 1 commit intomainfrom
dev/lalitm/hll-compute
Draft

tp: add HyperLogLog and compute per-column cardinality estimates#5156
LalitMaganti wants to merge 1 commit intomainfrom
dev/lalitm/hll-compute

Conversation

@LalitMaganti
Copy link
Member

@LalitMaganti LalitMaganti commented Mar 17, 2026

Stack

Add a HyperLogLog implementation in include/perfetto/ext/base/ and use
it to compute estimated unique value counts for HasDuplicates columns
during Dataframe::Finalize(). The estimates are stored on
Column::estimated_unique_count but not yet used by the query planner.

Fast paths: skip NoDuplicates/Id columns entirely, use transition
counting (no hashing) for sorted columns, HLL for unsorted columns.
@github-actions
Copy link

🎨 Perfetto UI Builds

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.

1 participant