L4 is now a burden

This commit is contained in:
Youmu Liu
2026-05-21 19:40:00 +08:00
parent 0681237c3b
commit 15f90aed29
3 changed files with 36 additions and 46 deletions
@@ -33,16 +33,11 @@ namespace StgSharp.HighPerformance.Memory
public unsafe partial class L4
{
public const int MaxActivateCacheLineCount = 1024;
private partial void Prefetch()
{
if (CurrentPredict is null) {
return;
}
if (_activeCount > MaxActivateCacheLineCount) {
throw new OverflowException("Too many activated cache line in external reference.");
}
IL4Predict predict = CurrentPredict;
int predictIndex = CurrentPredictIndex;
Span<CacheLineDescription> span = new(_prediction, PredictionCount);