bryanedds / Nu

Repository hosting the open-source Nu Game Engine and related projects.
MIT License
1.05k stars 152 forks source link

Arena-allocated collections #717

Open bryanedds opened 6 months ago

bryanedds commented 6 months ago

from discord - you know what might be faster than Prime's segmented collections? building an arena allocator in .NET like this one - https://github.com/xoofx/Varena then building collections on top of its provisions that's right first build a memory subsystem on top of .NET then build a new collection library on top of that seems kinda wacky and ya, it should but it's also not THAT much work well, it's not a small amount either what would be nicer maybe is if .NET itself exposed an arena allocator that we could activate in something like a using context. but i don't know of any existing initiatives along those lines fortunately, our segmented collections do the trick well enough for our use case but if we had something like corporate funding, it might be worth doing