Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
Arenas
Unmanaged arena memory allocators for C#/CSharp with easy interactions between managed and unmanaged references
-
Varena
Varena is a .NET library that provides a fast and lightweight arena allocator using virtual memory.
related: https://github.com/golang/go/issues/51317
Never heard of this concept I found this
https://github.com/Enichan/Arenas
For C#.
Been trying to get into more managed memory in C#, so this might be something good for that.
Another one is https://github.com/xoofx/Varena
Arguably, there's less need for arenas in C# in most scenarios than in Go because of easy object and array pooling out of box with ArrayPool, ObjectPool (Sdk.Web workload) and stackalloc/InlineArray and co. You can also just use malloc/free directly with NativeMemory.Alloc/Free instead.