Refactor collections, add Remove overloads, bump version

- Bump project version to 1.3.9.
- Move HashMapHelper to Collections namespace.
- Simplify UnsafeList<T>.AddRange to use only Span<T>.
- Add Remove overloads with out parameter to UnsafeSlotMap<T> and UnsafeSparseSet<T>.
- Improve MemoryLeakException stack trace formatting.
- Remove obsolete commented code in IJobSPMD.cs.
This commit is contained in:
2026-03-02 15:16:48 +09:00
parent 9413c1ee0b
commit b9ca71834f
7 changed files with 76 additions and 45 deletions

View File

@@ -34,27 +34,6 @@ internal struct SPMDJobWrapper<T, TNumber> : IJobParallelFor
}
}
}
//public void Execute(int startIndex, int endIndex, int threadIndex)
//{
// for (int i = startIndex; i < endIndex; i++)
// {
// var baseIndex = i * WideLane<TNumber>.LaneWidth;
// var remaining = totalCount - baseIndex;
// if (remaining >= WideLane<TNumber>.LaneWidth)
// {
// innerJob.Execute<WideLane<TNumber>>(baseIndex, threadIndex);
// }
// else
// {
// for (var j = 0; j < remaining; j++)
// {
// innerJob.Execute<ScalarLane<TNumber>>(baseIndex + j, threadIndex);
// }
// }
// }
//}
}
internal struct SPMDScalerJobWrapper<T, TNumber> : IJobParallelFor
@@ -68,15 +47,6 @@ internal struct SPMDScalerJobWrapper<T, TNumber> : IJobParallelFor
{
innerJob.Execute<ScalarLane<TNumber>>(loopIndex, threadIndex);
}
//[MethodImpl(MethodImplOptions.AggressiveInlining)]
//public void Execute(int startIndex, int endIndex, int threadIndex)
//{
// for (int i = startIndex; i < endIndex; i++)
// {
// innerJob.Execute<ScalarLane<TNumber>>(i, threadIndex);
// }
//}
}
public static class IJobParallelForSPMDExtensions