Skip to content

ordvec-python: optional safe_copy input isolation for GIL-releasing methods #113

@Fieldnote-Echo

Description

Default remains zero-copy and fast.

safe_copy=True would copy NumPy arrays into owned Rust buffers before py.detach.

It protects against another Python thread mutating the same input buffer during the call.

It does not make mutable index operations concurrent.

Candidate methods:

  • add
  • search
  • search_asymmetric
  • search_asymmetric_subset
  • bitmap/sign candidate methods
  • scoring helpers

Wait for concrete user demand before implementing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pythonordvec-python bindings

    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