Remove small prime stepper remainder cache
This commit is contained in:
1 parent
36a4617efe
commit
534141e5a7
2 files changed
+2
-195
No files matched your search
@@ -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)]
|
||||
|
||||
Reference in new issue
Block a user