Remove small prime stepper remainder cache

This commit is contained in:
Marek Lemańczyk committed 2025-10-17 03:50:09 +02:00
1 parent 36a4617efe
commit 534141e5a7
2 files changed
+2 -195

No files matched your search

-24
View File
@@ -9,18 +9,6 @@ namespace PerfectNumbers.Core
[ThreadStatic]
private static ArrayPool<FactorEntry>? _factorEntryPool;
[ThreadStatic]
private static ArrayPool<CycleRemainderStepper>? _cycleRemainderStepperPool;
public static ArrayPool<CycleRemainderStepper> CycleRemainderStepperPool
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return _cycleRemainderStepperPool ??= ArrayPool<CycleRemainderStepper>.Create();
}
}
public static ArrayPool<FactorEntry> FactorEntryPool
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -80,18 +68,6 @@ namespace PerfectNumbers.Core
[ThreadStatic]
private static ArrayPool<ulong>? _ulongPool;
[ThreadStatic]
private static ArrayPool<bool>? _boolPool;
public static ArrayPool<bool> BoolPool
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return _boolPool ??= ArrayPool<bool>.Create();
}
}
public static ArrayPool<ulong> UlongPool
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]