Supprocom.NativeAllocationManagement 0.2.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Supprocom.NativeAllocationManagement --version 0.2.1
                    
NuGet\Install-Package Supprocom.NativeAllocationManagement -Version 0.2.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Supprocom.NativeAllocationManagement" Version="0.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Supprocom.NativeAllocationManagement" Version="0.2.1" />
                    
Directory.Packages.props
<PackageReference Include="Supprocom.NativeAllocationManagement" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Supprocom.NativeAllocationManagement --version 0.2.1
                    
#r "nuget: Supprocom.NativeAllocationManagement, 0.2.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Supprocom.NativeAllocationManagement@0.2.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Supprocom.NativeAllocationManagement&version=0.2.1
                    
Install as a Cake Addin
#tool nuget:?package=Supprocom.NativeAllocationManagement&version=0.2.1
                    
Install as a Cake Tool

Supprocom.NativeAllocationManagement

Supprocom.NativeAllocationManagement gives C# code explicit ownership of native storage. NativePool<T> reuses typed slabs. NativeRegion provides one lexical heterogeneous lifetime. NativeArena provides reusable heterogeneous storage.

NativeBuilder<T> writes growable unmanaged sequences without managed intermediate arrays. NativeTransfer<T> moves heap-storable ownership across thread boundaries. NativeWorkspace<T> reuses one fixed typed block in a worker hot loop.

Each bounded operation checks the state required by its allocator contract. The bundled Roslyn analyzer checks ownership and bounded-view rules in consumer source. The package targets .NET 10.

Documentation

The getting-started guide contains installation instructions, complete examples, lifecycle rules, analyzer diagnostics, and cleanup requirements.

The guide covers typed pools, fixed workspaces, lexical regions, reusable arenas, growable builders, cross-thread transfers, scoped recycling, statistics, and trimming.

Measured performance

The included voxel benchmark estimates a 50 to 85 percent performance improvement over expert safe C# in non-memory-constrained control profiles.

Very memory-constrained profiles estimate 90 to 130 percent. Selected higher-turnover runs exceed 150 percent.

Both implementations process equal inputs and outputs. The expert safe C# path uses pooling, exact sizing, bounded retention, and proactive memory admission.

The matrix treats constrained-memory qualification as information. It verifies equal binary limits, no swap, and cumulative demand. It does not require garbage collection or a resident-memory threshold.

These estimates apply only to the included workload and test system. The voxel pipeline guide contains the method, commands, and current evidence.

License

This project uses the GNU Affero General Public License, version 3 only. See LICENSE.md for the complete terms and project-specific source offer.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

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
0.2.2 119 9/1/2026
0.2.1 184 8/11/2026
0.2.0 125 8/9/2026
0.1.2 128 8/2/2026
0.1.1 130 8/2/2026
0.1.0 138 8/1/2026

Specialize Region, Arena, and Pool hot paths. Add bounded builder writes, reusable workspaces, and stricter ownership analysis.