tlsf is ok, and fast

This commit is contained in:
Youmu Liu
2026-05-13 15:08:30 +08:00
parent bf9879f59f
commit ae57de4040
22 changed files with 409 additions and 4619 deletions
+3 -1
View File
@@ -158,6 +158,7 @@ namespace StgSharp
}
List<Tlsf.Handle> list = new List<Tlsf.Handle>((int)ops);
Stopwatch sw = Stopwatch.StartNew();
for (long i = 0; i < ops; i++)
{
@@ -173,8 +174,9 @@ namespace StgSharp
// Console.WriteLine(i);
}
sw.Stop();
double allocOpsPerSec = ops / sw.Elapsed.TotalSeconds;
double allocOpsPerSec = /**/ ops / sw.Elapsed.TotalSeconds/**/;
foreach (Tlsf.Handle h in list) {
allocator.Free(h);
}