Hiperspace.Heap
2.4.0
Prefix Reserved
See the version list below for details.
dotnet add package Hiperspace.Heap --version 2.4.0
NuGet\Install-Package Hiperspace.Heap -Version 2.4.0
<PackageReference Include="Hiperspace.Heap" Version="2.4.0" />
<PackageVersion Include="Hiperspace.Heap" Version="2.4.0" />
<PackageReference Include="Hiperspace.Heap" />
paket add Hiperspace.Heap --version 2.4.0
#r "nuget: Hiperspace.Heap, 2.4.0"
#:package Hiperspace.Heap@2.4.0
#addin nuget:?package=Hiperspace.Heap&version=2.4.0
#tool nuget:?package=Hiperspace.Heap&version=2.4.0
Hiperspace.Heap
The Heap driver provides the simplest hiperspace, storing objects in the managed process heap,
it exists for testing purposes, but also for benchmark performance of other drivers.
The Heap driver uses more memory, and is slower than the Rocks driver.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Hiperspace (>= 2.4.0)
- Microsoft.Bcl.HashCode (>= 6.0.0)
- protobuf-net.Core (>= 3.2.52)
- System.Numerics.Tensors (>= 9.0.5)
-
net9.0
- Hiperspace (>= 2.4.0)
- Microsoft.Bcl.HashCode (>= 6.0.0)
- protobuf-net.Core (>= 3.2.52)
- System.Numerics.Tensors (>= 9.0.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.5.35 | 93 | 2/27/2026 |
| 2.5.33 | 98 | 2/14/2026 |
| 2.5.32 | 103 | 1/30/2026 |
| 2.5.29 | 108 | 1/17/2026 |
| 2.5.28 | 114 | 12/31/2025 |
| 2.5.26 | 196 | 12/21/2025 |
| 2.5.21 | 446 | 12/10/2025 |
| 2.5.18 | 685 | 12/3/2025 |
| 2.5.13 | 205 | 11/24/2025 |
| 2.5.8 | 188 | 11/15/2025 |
| 2.5.2 | 220 | 11/6/2025 |
| 2.5.0 | 215 | 10/20/2025 |
| 2.4.6 | 210 | 9/23/2025 |
| 2.4.4 | 299 | 8/7/2025 |
| 2.4.2 | 186 | 7/28/2025 |
| 2.4.0 | 220 | 7/10/2025 |
| 2.3.8 | 201 | 7/1/2025 |
| 2.3.7 | 213 | 6/18/2025 |
| 2.3.3 | 223 | 6/5/2025 |
| 2.2.2 | 230 | 5/5/2025 |
## Overview
**Hiperspace** is uses [protobuf](https://protobuf.dev/) wire-format to serialize **elements** in the domain **SubSpace**
for persistence is a *key/value* *(primarily [RocksDB](https://rocksdb.org/))* with *minimal* transformation, and no padding.
The schema can evolve without the need to alter an historically, using two rules:
* #id numeric aliases for {entities, segments, aspects, keys, values, indexes} are never reused
* The datatype of {keys, values} are never changed (*other than by renaming items*)
### MetaModel
The `MetaModel` contains a list of all the *Element* types stored within a Hiperspace and the data types of each *key*
and *value*. The `MetaModel` is eternal - additional *Element* are added as tyhe schema changes, but never removed, to ensure that
older build can still read the data that they understand.
When a **Hiperspace** is opened, the domain `MetaModel` is compared with the `MetaModel` stored in the **Hiperspace** to ensure the
above rules have not been compromised. All read and write after open uses the wire-format directly without transformation from store
through to client application (including browser web-assembly).
### MetaMap
To support range access, the bytes in wire-format for keys are reordered to place message lengths at the end of the `byte[]`
for each key. This is especially important for *segments* (*where the parent knows only the `owner` part of the key, and *indexes*).
The `MetaMap` is an ordered array of #id and mapping of *key/value* #id to the element #id of references. The `MetaMap` is coded
in the domain assembly. This release adds the capability to remove key references without the need to crerate a new element type, by
regenerating the `MetaMap` from the `MetaModel` stored in **Hiperspace**.
### Change
This release changes the method signatures {`KeyPath`, `IndexPath`} to support a MetaMap built at load-time, and
adds additional abstract methods to the `Hiperspace` to load and merge `MetaModel`.
The `MetaModelException` exception type has been added to provide detailed diagnostics, if the `MetaModel` is not compatible.