Repository navigation
Releases
omp-index v2.0.0
Overview
omp-index v2.0.0 is the first stable release of omp-index, the successor to IndexWeaver 1.x. It manages in-memory associations for open.mp through 24 Pawn natives and six helper stocks. The open.mp component reports itself as Index.
Changes
- Direct registries map signed IDs to nonnegative indices. Bidirectional registries add reverse lookup and enforce one-to-one index ownership.
- Group registries provide one-to-many associations and secondary indexes by equality. Each member has one signed key per registry. Membership changes are atomic, and group reads return bounded pages.
- Conditional writes, atomic pair batches and same-kind registry swaps let scripts stage and publish index updates. Batch reads report an individual status for each row.
- The
scalar75engine uses flat tables with a 75% load threshold. Registries share a bounded slot pool and carry 64-bit generations in their handles. Ownership checks isolate each AMX and reject stale handles. - The component-wide allocation budget defaults to 128 MiB, including transient and overlapping component allocations. Registry quotas also apply. Unloading a script releases its registries automatically. A gamemode rebuilds its own registries after GMX, while filterscripts that stay loaded retain theirs.
Breaking changes and migration
Replace #include <indexweaver> and the global SetMapIndex family with #include <omp_index>, explicit registry creation and idx_* calls. Check IDX_STATUS before reading outputs and handle lookup misses explicitly. Recompile your scripts and populate the new registries from authoritative application data. The old and new components share an open.mp component UID. Remove the old binary before installing Index. Migration guide · Pawn API reference
Compatibility and installation
The qualified targets are Windows x86 and Linux x86 with official open.mp v1.6.7.3218. Linux requires compatible 32-bit system libraries.
- Download the matching ZIP and check its SHA-256.
- Stop the server and place
components/Index.dllorcomponents/Index.soin the server'scomponents/directory. Copyinclude/omp_index.incfrom the same ZIP to your Pawn compiler's include path. - Recompile your scripts, start the server and check for
Index 2.0.0: loaded. Useidx_get_versionto confirm the loaded API version.
Production validation
| Target | Verified workload | Verified operations | Independent replay |
|---|---|---|---|
| Windows x86 | 86,400.058 s | 200,452,077 | PASS |
| Linux x86 | 86,400.040 s | 200,462,445 | PASS |
The two runs verified 400,914,522 operations in total. All 26 applicable gates passed. The remaining gate covers environments outside the qualification scope. Qualification record
Known limitations
Calls run synchronously on the server thread. Large reserves, shrinks and batches can consume time and temporary capacity. Group page order is unspecified and can change with mutations. Controlled Linux x86 benchmarks observed slower lookup misses and deletes than in 1.1 for some workloads. The qualification covers the two x86 packages and the runtime above. Storage measurements
Release assets and source
| Asset | SHA-256 |
|---|---|
omp-index-2.0.0-windows-x86.zip |
8930d063ce5db419f3ba551355caebf552bd66746d8cd57acaf8f0bd54474d03 |
omp-index-2.0.0-linux-x86.zip |
a54fba9fb5d930ffeb3db275f0df7b207cbb82cb1dd9aebf3e06b47df7f56707 |
The matching .sha256 files are attached. Both ZIPs preserve the qualified component, Pawn include, manifests, documentation and licenses. The build manifests identify source commit 991a25e04301bccdfe38fa2c3f91ae7810f483a6 and its qualified tree is 21cff6249c749bfe4884f6c5bcda57b002d12948. The v2.0.0 tag includes later documentation updates. The bundled README describes the candidate as under development because it records the build checkout. Use the tagged README for current installation and migration instructions.
IndexWeaver v1.1.0
Overview
IndexWeaver 1.1.0 extends the public Pawn API with two registry statistics natives. The underlying storage architecture remains unchanged from v1.0.0.
Changes since v1.0.0
Pawn API
- Added
CountMapRegistry(registry_type)to retrieve the number of mappings stored in a specified registry. - Added
CountAllMapRegistries()to retrieve the number of non-empty registries managed by the storage engine.
The public Pawn API now provides eleven natives. Both statistics functions expose functionality already present in the internal C++ storage engine.
Documentation
- Extended the public API reference to document the new natives.
- Added parameter descriptions, return-value semantics, and complexity information to the Pawn include.
- Updated
INDEX_WEAVER_VERSIONto1.1.0.
Compatibility
Existing public native signatures remain unchanged. Pawn scripts written against v1.0.0 do not require API migration.
The storage engine, component lifecycle implementation, build configuration, and test sources remain unchanged from v1.0.0.
Known limitations
The Pawn include identifies this release as 1.1.0. However, the CMake project version and the component's reported runtime version retain their 1.0.0 values.
Installation
The release provides the following files:
- Windows x86:
IndexWeaver.dll - Linux x86:
IndexWeaver.so - Pawn include:
indexweaver.inc
Replace the existing component binary and Pawn include with the corresponding files from this release. Recompile Pawn scripts to use the new statistics natives.
See the README for API documentation, usage examples, and build instructions.
Full changelog: v1.0.0...v1.1.0
IndexWeaver v1.0.0
Overview
IndexWeaver 1.0.0 is the initial release of an in-memory ID-to-index registry component for open.mp. It allows Pawn scripts to resolve identifiers to array indices without performing linear array searches. The component stores identifier-to-index mappings rather than the underlying application data.
The project requires C++20 and CMake 3.19 or later.
Architecture
- Hybrid storage using a fixed
std::arrayof hash maps for registry types 0–63 and nested hash maps for registry types 64 and above. - Robin Hood hashing through
robin_hood::unordered_flat_map. - Average constant-time (
O(1)) insertion, lookup, and removal. - Capacity retention in fixed registries to reduce allocation overhead during subsequent insertions.
- Removal of dynamic registries when their last mapping is deleted.
- Optional capacity reservation for bulk loading.
- Configurable runtime diagnostic logging.
Pawn API
The public Pawn API provides nine natives for managing mappings, clearing registries, reserving storage capacity, and configuring diagnostic logging.
Performance
The original release reported the following synthetic benchmark results using MSVC with /O2 optimization:
| Operation | Iterations | Approximate elapsed time |
|---|---|---|
| Insertions | 10,000,000 | 0.92 s |
| Lookups | 10,000,000 | 0.62 s |
| Removals | 10,000,000 | 0.69 s |
These measurements are historical results from a synthetic workload and do not establish performance guarantees for production servers.
Installation
The release provides the following files:
- Windows x86:
IndexWeaver.dll - Linux x86:
IndexWeaver.so - Pawn include:
indexweaver.inc
Place the appropriate component binary in the server's components/ directory and copy indexweaver.inc to the Pawn compiler's include directory.
See the README for API documentation, usage examples, and build instructions.
Full changelog: v1.0.0