Skip to content

Use a hash-based pick #41

@hittjwX

Description

@hittjwX
  • See TidyObsidian/find-duplicate-blocks.py

Use a hash-based pick: sort tokens by a stable hash (e.g., hash(token) or sha1(token)), then take the first N. This approximates MinHash and tends to distribute blocks more evenly across the token space.

This change shrinks candidate_indices per block, so the inner Jaccard loop runs far fewer times.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions