Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USearch v3: Text Indexes, Faster Views, Cleaner API and Docker #277

Merged
merged 2 commits into from
Nov 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
persist-credentials: false
- uses: actions/setup-node@v3
- run: npm install --save-dev @semantic-release/exec @semantic-release/git conventional-changelog-eslint semantic-release && npx semantic-release
- run: npm install --save-dev --prefix ./package-ci @semantic-release/exec @semantic-release/git conventional-changelog-eslint semantic-release && npx --prefix ./package-ci semantic-release

rebase:
name: Rebase Dev. Branch
Expand Down
11 changes: 6 additions & 5 deletions include/usearch/index.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ class max_heap_gt {
inline bool empty() const noexcept { return !size_; }
inline std::size_t size() const noexcept { return size_; }
inline std::size_t capacity() const noexcept { return capacity_; }

/// @brief Selects the largest element in the heap.
/// @return Reference to the stored element.
inline element_t const& top() const noexcept { return elements_[0]; }
Expand Down Expand Up @@ -2205,7 +2206,7 @@ class index_gt {
node_t node = nodes_[candidate.slot];
return {member_cref_t{node.ckey(), candidate.slot}, candidate.distance};
}
inline std::size_t merge_into( //
inline std::size_t merge_into( //
vector_key_t* keys, distance_t* distances, //
std::size_t old_count, std::size_t max_count) const noexcept {

Expand Down Expand Up @@ -2279,10 +2280,10 @@ class index_gt {
typename callback_at = dummy_callback_t, //
typename prefetch_at = dummy_prefetch_t //
>
add_result_t add( //
add_result_t add( //
vector_key_t key, value_at&& value, metric_at&& metric, //
index_update_config_t config = {}, //
callback_at&& callback = callback_at{}, //
index_update_config_t config = {}, //
callback_at&& callback = callback_at{}, //
prefetch_at&& prefetch = prefetch_at{}) usearch_noexcept_m {

add_result_t result;
Expand Down Expand Up @@ -2389,7 +2390,7 @@ class index_gt {
>
add_result_t update( //
member_iterator_t iterator, //
vector_key_t key, //
vector_key_t key, //
value_at&& value, //
metric_at&& metric, //
index_update_config_t config = {}, //
Expand Down
10 changes: 10 additions & 0 deletions package-ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "usearch-ci",
"version": "1.0.0",
"devDependencies": {
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"conventional-changelog-eslint": "^3.0.9",
"semantic-release": "^21.1.2"
}
}
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
"test": "node --test ./javascript/usearch.test.js"
},
"devDependencies": {
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"conventional-changelog-eslint": "^3.0.9",
"semantic-release": "^21.1.2",
"typescript": "^5.1.6"
}
}