Hiperspace.Heap
1.2.28
See the version list below for details.
dotnet add package Hiperspace.Heap --version 1.2.28
NuGet\Install-Package Hiperspace.Heap -Version 1.2.28
<PackageReference Include="Hiperspace.Heap" Version="1.2.28" />
paket add Hiperspace.Heap --version 1.2.28
#r "nuget: Hiperspace.Heap, 1.2.28"
// Install Hiperspace.Heap as a Cake Addin #addin nuget:?package=Hiperspace.Heap&version=1.2.28 // Install Hiperspace.Heap as a Cake Tool #tool nuget:?package=Hiperspace.Heap&version=1.2.28
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. |
-
net8.0
- Hiperspace (>= 1.2.28)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
## ConcurentHashSet
The hash map for set spaces has been updated to use concurrent hash map.
This is needed for two scenarios
1. Horizons filter cause additional elements to be loaded in a set space while it is being enumerated.
2. Parallel scan for Node and Edge cause references to be loaded in thread order.
This implementation of Concurent HashSet:
* Provides locking around HashSet functions (using low-contention Spin Locks)
* One or more HashSet segments that are locked for read while enumeration functions are running
* Add / Remove / Replace / UnionAll operations are performed on the next segment to avoid mutation during enumeration
* Any additions made (to next segment) are merged when the last enumeration has completed
* Whole-set functions are deferred until enumerations has completed
## RockSpace disposal
Internally the RocksDB Flush function uses async-io, that under heavy load can complete before pending IO, which blocks disposal of the connection. The RocksSpace driver has been updated to retry disposal to allow async IO to complete
## HiperSpace GetHorizons() function
A common loading scenario is to use a SessionSpace to batch a set of additions to a domain space
```
public void LoadingFunction (DomainSpace domain)
{
using (var session = new SessionSpace (new HeapSpace(), domain, SessionSpace.RollUpSeconds(1))))
using (var loader = new DomainSpace(session))
{
... load actions
}
}
```
The `GetHorizons()` function allows `loader` to apply any domain Horizon filters. This is especially useful in server configurations where role-based access control is applied to the source source transparently to the local function.