some chore

This commit is contained in:
Youmu Liu
2026-03-11 18:55:45 +08:00
parent c842f72934
commit 9b5dfec9d5
7 changed files with 313 additions and 32 deletions
@@ -45,6 +45,7 @@ namespace StgSharp.HighPerformance.Memory
Span<CacheLinePrediction> span = new(_prediction, PredictionCount);
int actualCount = PrefetchPredict.Predict(span);
int missIndex = 0;
AgeAll();
for (int i = 0; i < actualCount; i++)
{
ref CacheLinePrediction handle = ref span[i];
@@ -62,6 +63,9 @@ namespace StgSharp.HighPerformance.Memory
{
ref CacheLinePrediction handle = ref span[i];
nuint address = handle.Address;
nuint mapPtr = _cacheLineAllocator.Allocate();
CacheLineHead* head = (CacheLineHead*)_entryAllocator.Allocate();
// pre fetch them here
}