opensearch-project / k-NN

🆕 Find the k-nearest neighbors (k-NN) for your vector data
https://opensearch.org/docs/latest/search-plugins/knn/index/
Apache License 2.0
152 stars 113 forks source link

Parallelize make to reduce build time #2006

Closed naveentatikonda closed 1 month ago

naveentatikonda commented 1 month ago

Description

Parallelize make to reduce the build time when we are building the plugin or the JNI libraries for the first time.

Check List

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.

naveentatikonda commented 1 month ago

Running into some issues while detecting the processor count and passing it to gradle on mac and windows from github workflow. So, hardcoding them for now based on the github runners configuration https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories