feat(buffer): add TLSF allocator and seqlock primitives
Added a TLSF (Two-Level Segregated Fit) memory allocator with O(1) allocation, free, and reallocation in `TLSF.cs`, plus comprehensive unit tests. Introduced a cache-line-padded `SeqLock` synchronization primitive. Refactored vector extension code for conciseness and fixed its usage to `extension(ref ...)`. Updated namespaces, removed unused code, and improved assertion and diagnostics. Updated NuGet dependencies and project files.
This commit is contained in:
@@ -39,7 +39,7 @@ void EmitVector(string typePrefix, string[] components)
|
||||
{
|
||||
var swizzles = GenerateSwizzles(components, components.Length);
|
||||
#>
|
||||
extension(<#= typePrefix + components.Length #> v)
|
||||
extension(ref <#= typePrefix + components.Length #> v)
|
||||
{
|
||||
<#
|
||||
foreach (var (property, canSet) in swizzles)
|
||||
|
||||
Reference in New Issue
Block a user