Skip to content

Add simple native dot-product code #620

Description

@mikemccand

Frustratingly, in some cases, the fastest performance for Lucene vector search requires the user (app developer) to bring their own natively compiled code. Else Lucene falls back to Panama sometimes, else hotspot-optimized java code. I'm not certain about the decision tree.

Yet it's fairly simple to write trivial C code, let modern gcc optimize for specfic CPU architectures, and ask Lucene to insert that dynamic library and use it instead.

Let's make a simple example in luceneutil of how to do this? It'd be at least a place for users to start. Long term, ideally, Lucene would do this out of the box, but the tricky part is the build, hrmph. It's always the build tooling...

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions