Skip to content

Commit e6c46ce

Browse files
authored
Merge pull request #639 from unum-cloud/main-dev
Multi-threading Usability in Python & JavaScript
2 parents 3674370 + 663eb9b commit e6c46ce

8 files changed

Lines changed: 434 additions & 306 deletions

File tree

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,15 @@ The compilation settings are controlled by the `setup.py` and are independent fr
163163
To install USearch locally using `uv`:
164164

165165
```sh
166-
uv venv --python 3.11 # or your preferred Python version
167-
source .venv/bin/activate # to activate the virtual environment
168-
uv pip install -e . # to build locally from source
166+
uv venv --python 3.11 # or your preferred Python version
167+
source .venv/bin/activate # to activate the virtual environment
168+
uv pip install -e . --force-reinstall # to build locally from source
169169
```
170170

171171
Or using `pip` directly:
172172

173173
```sh
174-
pip install -e .
174+
pip install -e . --force-reinstall
175175
```
176176

177177
For testing USearch uses PyTest, which is pre-configured in `pyproject.toml`.

include/usearch/index.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,6 +1751,9 @@ class memory_mapped_file_t {
17511751
{
17521752
}
17531753

1754+
memory_mapped_file_t(memory_mapped_file_t const&) = delete;
1755+
memory_mapped_file_t& operator=(memory_mapped_file_t const&) = delete;
1756+
17541757
memory_mapped_file_t(byte_t* data, std::size_t length) noexcept : ptr_(data), length_(length) {}
17551758

17561759
memory_mapped_file_t& operator=(memory_mapped_file_t&& other) noexcept {

javascript/lib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ Napi::Value exactSearch(Napi::CallbackInfo const& ctx) {
388388
return env.Null();
389389
}
390390

391-
executor_default_t executor(threads);
391+
executor_default_t executor{threads};
392392
exact_search_t search;
393393

394394
// Performing the exact search.

0 commit comments

Comments
 (0)