Various small optimizations

This commit is contained in:
mlemanczyk committed 2025-11-01 03:42:36 +01:00
1 parent b7c34f4960
commit 22f20bfe98
14 files changed
+206 -280

No files matched your search

@@ -10,7 +10,6 @@ public class PrimeTesterGpuTests
[Fact]
public void IsPrimeGpu_accepts_known_primes()
{
GpuContextPool.ForceCpu = false;
try
{
var tester = new PrimeTester();
@@ -22,7 +21,6 @@ public class PrimeTesterGpuTests
}
finally
{
GpuContextPool.ForceCpu = false;
GpuContextPool.DisposeAll();
}
}
@@ -30,7 +28,6 @@ public class PrimeTesterGpuTests
[Fact]
public void IsPrimeGpu_rejects_composites()
{
GpuContextPool.ForceCpu = false;
try
{
var tester = new PrimeTester();
@@ -42,7 +39,6 @@ public class PrimeTesterGpuTests
}
finally
{
GpuContextPool.ForceCpu = false;
GpuContextPool.DisposeAll();
}
}