for instance this is approximately how much value you are dealing with in Ca region, it is a nightmare, i have 16GB RAM PC 8GB RAM Emulator but it still take decade, you need to change your approach, this will never succeed.
code used for test
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchFuzzy('0', gg.SIGN_FUZZY_EQUAL, gg.TYPE_DWORD, 0, -1, 0)
this is the approach i used, at least no crash but it take too long as well
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchFuzzy('0', gg.SIGN_FUZZY_EQUAL, gg.TYPE_DWORD, 0, -1, 0)
local resultsCount = gg.getResultsCount()
if (resultsCount == 0) then
print('No results found')
return
end
local results = gg.getResults(resultsCount)
for i = 1, resultsCount, 4 do
results[i] = nil
end
gg.clearResults()
gg.loadResults(results)