Skip to content

JoinHashMap probe SIMD short-circuit optimization #2160

@yew1eb

Description

@yew1eb

In join_hash_map.rs probe logic, both SIMD comparisons execute unconditionally:

  let hash_matched = self.map[e].hashes.simd_eq(Simd::splat(hashes[i]));
  let empty = self.map[e].hashes.simd_eq(Simd::splat(0));  // always runs
  if let Some(pos) = (hash_matched | empty).first_set() { ... }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions