This commit renames `AllocationType` to `AllocationOption` across multiple files, enhancing clarity in memory allocation practices. Key updates include: - Modifications to the `UnsafeArray`, `ParallelNoiseBenchmark`, `Arena`, and `DynamicArena` classes to utilize the new `AllocationOption`. - Refactoring of the `AllocationManager` and `HashMapHelper` classes to support the new allocation strategy. - Removal of the `Misaki.HighPerformance.Mathematics` project reference, indicating a restructuring of dependencies. - Introduction of a new `MathUtilities` class for calculating the smallest power of two, aiding memory allocation strategies. These changes collectively improve code maintainability and clarity in memory management.
8 lines
211 B
C#
8 lines
211 B
C#
using Misaki.HighPerformance.Test;
|
|
using Misaki.HighPerformance.Unsafe.Services;
|
|
|
|
AllocationManager.Initialize(512_000);
|
|
var test = new CollectionBenchmark();
|
|
test.UnsafeArray();
|
|
AllocationManager.Dispose();
|