This commit is contained in:
Nitload
2026-03-16 07:15:19 +08:00
parent ccf95ec270
commit 8e6dfa7211
3 changed files with 62 additions and 50 deletions
@@ -2,8 +2,8 @@
// -----------------------------------------------------------------------
// file="L4.Prefetch"
// Project: StgSharp
// AuthorGroup: Nitload
// Copyright (c) Nitload. All rights reserved.
// AuthorGroup: Nitload Space
// Copyright (c) Nitload Space. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
@@ -72,14 +72,12 @@ namespace StgSharp.HighPerformance.Memory
}
CacheLineHead* head = &_head[index];
// pre fetch them here
PrefetchPredict.Prefetch(head->_origin, _head->_profile, _head->_address);
}
}
private partial bool TestHit(
nuint origin
)
private partial bool TestHit(nuint origin)
{
if (_map.TryGet(origin, out nuint handle))
{