Use JIT-friendly array iteration in `RamSearchEngine.Start`

This commit is contained in:
YoshiRulz 2024-05-31 12:27:33 +10:00
parent 7d5574910c
commit 625a7438fd
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ namespace BizHawk.Client.Common.RamSearchEngine
{
default:
case WatchSize.Byte:
for (int i = 0; i < domain.Size; i++)
for (var i = 0; i < _watchList.Length; i++)
{
if (_settings.IsDetailed())
{
@ -82,7 +82,7 @@ namespace BizHawk.Client.Common.RamSearchEngine
}
break;
case WatchSize.Word:
for (int i = 0; i < listSize; i++)
for (var i = 0; i < _watchList.Length; i++)
{
if (_settings.IsDetailed())
{
@ -95,7 +95,7 @@ namespace BizHawk.Client.Common.RamSearchEngine
}
break;
case WatchSize.DWord:
for (int i = 0; i < listSize; i++)
for (var i = 0; i < _watchList.Length; i++)
{
if (_settings.IsDetailed())
{