world timer supports numa and thread affinity binding
This commit is contained in:
@@ -13,6 +13,7 @@ using StgSharp.Mathematics.Numeric;
|
||||
using StgSharp.Timing;
|
||||
using StgSharp.Timing;
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
@@ -29,12 +30,21 @@ namespace StgSharp
|
||||
{
|
||||
try
|
||||
{
|
||||
World.Initialize()
|
||||
World.Initialize(new()
|
||||
{
|
||||
TimingConfig = new TimeSourceStartupConfiguration()
|
||||
})
|
||||
|
||||
// .UseModule<NumericalModule>()
|
||||
// .UseModule<GraphicModule>()
|
||||
.InitializeModule();
|
||||
|
||||
_ = SlabAllocator.FromBuffer<int>(
|
||||
(nuint)NativeMemory.AlignedAlloc(65536 * 4, 4),
|
||||
65536,
|
||||
buffer => NativeMemory.AlignedFree((void*)buffer)
|
||||
);
|
||||
|
||||
TestRegexAnalyse.Run();
|
||||
|
||||
// TestHlsf();
|
||||
|
||||
@@ -46,11 +46,6 @@ namespace StgSharp
|
||||
Console.WriteLine($"\t{node.Value}\t{node.Source.Flag}");
|
||||
}
|
||||
Console.WriteLine(interpreterSource.AnalyseException?.ToString() ?? "No error");
|
||||
RegexInfo info = interpreterSource.Info;
|
||||
Console.WriteLine("-----Regex Info-----");
|
||||
Console.WriteLine($"Min length: {info.MinPredictLength}");
|
||||
Console.WriteLine($"Region count: {info.RegionCount}");
|
||||
Console.WriteLine($"Single line dependency: {info.SingleLineResultCount}");
|
||||
Console.WriteLine();
|
||||
Console.WriteLine();
|
||||
Console.WriteLine();
|
||||
|
||||
Reference in New Issue
Block a user