Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors:
given-names: "Ash"
orcid: "https://orcid.org/0000-0002-4882-1815"
title: "USearch by Unum Cloud"
version: 2.22.0
version: 2.23.0
doi: 10.5281/zenodo.7949416
date-released: 2023-10-22
url: "https://github.com/unum-cloud/usearch"
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
cmake_minimum_required(VERSION 3.11 FATAL_ERROR)
project(
usearch
VERSION 2.22.0
VERSION 2.23.0
LANGUAGES C CXX
DESCRIPTION "Smaller & Faster Single-File Vector Search Engine from Unum"
HOMEPAGE_URL "https://github.com/unum-cloud/usearch"
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "usearch"
version = "2.22.0"
version = "2.23.0"
authors = ["Ash Vardanian <1983160+ashvardanian@users.noreply.github.com>"]
description = "Smaller & Faster Single-File Vector Search Engine from Unum"
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ doi = {10.5281/zenodo.7949416},
author = {Vardanian, Ash},
title = {{USearch by Unum Cloud}},
url = {https://github.com/unum-cloud/usearch},
version = {2.22.0},
version = {2.23.0},
year = {2023},
month = oct,
}
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.22.0
2.23.0
2 changes: 1 addition & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class USearchConan(ConanFile):

name = "usearch"
version = "2.22.0"
version = "2.23.0"
license = "Apache-2.0"
description = "Smaller & Faster Single-File Vector Search Engine from Unum"
homepage = "https://github.com/unum-cloud/usearch"
Expand Down
2 changes: 1 addition & 1 deletion csharp/nuget/nuget-package.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<Version Condition="'$(Version)' == ''">2.22.0</Version>
<Version Condition="'$(Version)' == ''">2.23.0</Version>

<Authors>Unum</Authors>
<Company>Unum</Company>
Expand Down
12 changes: 7 additions & 5 deletions include/usearch/index.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define UNUM_USEARCH_HPP

#define USEARCH_VERSION_MAJOR 2
#define USEARCH_VERSION_MINOR 22
#define USEARCH_VERSION_MINOR 23
#define USEARCH_VERSION_PATCH 0

// Inferring C++ version
Expand Down Expand Up @@ -72,7 +72,9 @@
// OS-specific includes
#if defined(USEARCH_DEFINED_WINDOWS)
#define _USE_MATH_DEFINES
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <Windows.h>
#include <sys/stat.h> // `fstat` for file size
#undef NOMINMAX
Expand Down Expand Up @@ -500,7 +502,7 @@ template <typename allocator_at = std::allocator<byte_t>> class bitset_gt {

static constexpr std::size_t bits_per_slot() { return sizeof(compressed_slot_t) * CHAR_BIT; }
static constexpr compressed_slot_t bits_mask() { return sizeof(compressed_slot_t) * CHAR_BIT - 1; }
static constexpr std::size_t slots(std::size_t bits) { return divide_round_up<bits_per_slot()>(bits); }
static constexpr std::size_t bits_slots(std::size_t bits) { return divide_round_up<bits_per_slot()>(bits); }

compressed_slot_t* slots_{};
/// @brief Number of slots.
Expand All @@ -524,8 +526,8 @@ template <typename allocator_at = std::allocator<byte_t>> class bitset_gt {
}

bitset_gt(std::size_t capacity) noexcept
: slots_((compressed_slot_t*)allocator_t{}.allocate(slots(capacity) * sizeof(compressed_slot_t))),
count_(slots_ ? slots(capacity) : 0u) {
: slots_((compressed_slot_t*)allocator_t{}.allocate(bits_slots(capacity) * sizeof(compressed_slot_t))),
count_(slots_ ? bits_slots(capacity) : 0u) {
clear();
}

Expand Down Expand Up @@ -1778,7 +1780,7 @@ class memory_mapped_file_t {
#if defined(USEARCH_DEFINED_WINDOWS)

HANDLE file_handle =
CreateFile(path_, GENERIC_READ, FILE_SHARE_READ, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
CreateFileA(path_, GENERIC_READ, FILE_SHARE_READ, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
if (file_handle == INVALID_HANDLE_VALUE)
return result.failed("Opening file failed!");

Expand Down
4 changes: 2 additions & 2 deletions java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repositories {
// Task to download USearch JAR from GitHub releases
task downloadUSearchJar {
doLast {
def usearchVersion = '2.22.0'
def usearchVersion = '2.23.0'
def usearchUrl = "https://github.com/unum-cloud/usearch/releases/download/v${usearchVersion}/usearch-${usearchVersion}.jar"
def usearchFile = file("lib/usearch-${usearchVersion}.jar")

Expand All @@ -38,7 +38,7 @@ compileJava.dependsOn downloadUSearchJar

dependencies {
// USearch JAR from local lib directory (downloaded automatically)
implementation name: 'usearch', version: '2.22.0', ext: 'jar'
implementation name: 'usearch', version: '2.23.0', ext: 'jar'
}
```

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "usearch",
"version": "2.22.0",
"version": "2.23.0",
"description": "Smaller & Faster Single-File Vector Search Engine from Unum",
"author": "Ash Vardanian (https://ashvardanian.com/)",
"license": "Apache 2.0",
Expand Down
2 changes: 1 addition & 1 deletion wasmer.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "unum/usearch"
version = "2.22.0"
version = "2.23.0"
description = "Smaller & Faster Single-File Vector Search Engine from Unum"
license = "Apache-2.0"
readme = "README.md"
Expand Down