Commit Graph

106 Commits

Author SHA1 Message Date
8edb04263f Fixed bug in ImageResultFloat
Added scoped to in TKey key
2026-03-15 17:22:22 +09:00
2e08a8ad95 Update Package structure 2026-03-08 15:57:05 +09:00
50fe1c8890 Update Package 2026-03-08 15:46:38 +09:00
fba1c6adfd Merge branch 'main' of https://git.personalnas.com/Misaki/Misaki.HighPerformance
# Conflicts:
#	Misaki.HighPerformance.LowLevel/Collections/UnsafeMultiHashMap.cs
2026-03-08 15:39:42 +09:00
21e755a56e Added UnsafeMultiHashMap 2026-03-08 15:38:37 +09:00
080ad16724 Added UnsafeMultiHashMap 2026-03-08 15:38:00 +09:00
37d548085e Refactor job API: add JobExecutionContext, update tests
Major breaking change: job interfaces now use JobExecutionContext
instead of threadIndex, enabling thread-aware and dynamic job
dispatching. Updated all job system, SPMD, and test code to match.
Collections improved with new methods and clearer enumerators.
Renamed IJobScheduler.WaitComplete to Wait. Incremented project
versions. Includes bug fixes, documentation, and style updates.
2026-03-04 11:43:39 +09:00
b9ca71834f 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.
2026-03-02 15:16:48 +09:00
9413c1ee0b Update package to source only 2026-02-23 16:11:18 +09:00
b9adcee57c Update package version 2026-02-22 12:37:11 +09:00
ffac1c643e Fix source only package issue in nuget 2026-02-22 12:36:51 +09:00
49dc44605b Fixed the bug that Vector type in SPMD does not work as expected 2026-02-22 11:57:49 +09:00
f4c929fd88 Update package version 2026-02-22 11:48:01 +09:00
7367826978 Update Job 2026-02-21 17:20:51 +09:00
4f964b2d2a Add Vector type in SPMD to total of load vector size * lane width of number into memory for simd calculation. 2026-02-13 21:47:05 +09:00
75d33d0763 Add Vector3<TLane, TNumber> 2026-02-13 12:51:22 +09:00
f9cb909841 Update math library 2026-02-12 19:43:04 +09:00
a9c143c2a2 SPMD SIMD math library & lock-free job system integration
- Add new SPMD SIMD math project with scalar/vector lanes
- Integrate SPMD jobs and scheduling into job system
- Implement lock-free job dependency management
- Update math functions for .NET 10 and SIMD performance
- Add SPMD benchmarks, compress-store tests, and race tests
- Introduce generic Result<T> error handling utilities
- Solution/project file updates and code cleanup
2026-02-11 22:44:30 +09:00
c36405645b Improve performance and safety 2026-02-01 01:56:17 +09:00
1fee890329 Refactor core APIs, fix bugs, and improve safety
- Make image result/info structs readonly; improve error handling and memory safety in image library
- Introduce IJobScheduler interface; move job scheduling docs to interface
- Remove "index 0 invalid" convention from slot/sparse maps; fix Count logic
- Add Owner<T> for disposable value types in low-level utilities
- Improve ObjectPool<T> thread safety and logic
- Change List<T>.RemoveAndSwapBack to return bool
- Remove unsafe methods from generated math types; add debug range checks
- Update benchmarks and enable collection checks in tests
- Improve documentation, comments, and error messages
- Bump assembly versions across all projects
2025-12-21 16:08:10 +09:00
a1ad0bd2da Improve vector and matrix performance and add swizzle support to .net build-int VectorX type. 2025-12-17 16:55:28 +09:00
ef2a3a37bd merge 2025-12-13 19:29:37 +09:00
a5df2c9637 Add SparseSet Test 2025-12-13 19:29:03 +09:00
3016696d76 Add SparseSet Test 2025-12-13 18:26:59 +09:00
c882c75760 Add SparseSet 2025-12-13 16:43:32 +09:00
5184363e7d Fixed the bug that UnsafeSlotMap return wrong generation after resize. 2025-12-12 16:35:04 +09:00
c4ca3e1bc9 Update gitea workflow 2025-12-12 16:18:31 +09:00
fb31fd8ca8 Reserve index 0 in SlotMap, improve unsafe collections
- Reserve index 0 as always invalid in SlotMap, ConcurrentSlotMap, UnsafeSlotMap, and UnsafeSparseSet; update all index checks and slot operations accordingly
- Refactor SlotMap to use parallel arrays and BitArray for occupancy
- Double capacity on resize for all major unsafe collections
- Add debugger display support for unsafe collections
- Improve NuGet publishing workflow to skip existing versions
- Increment package versions (LowLevel: 1.3.1, main: 1.0.2)
- Add comprehensive unit tests for SlotMap and ConcurrentSlotMap
- Update main program and documentation for new slot map behavior
2025-12-12 16:10:49 +09:00
a0a4b347dd Added ReleaseTempAllocator to JobScheduler 2025-12-09 12:31:51 +09:00
0438fce10e Fixed the bug that MemCpy does not work as expected 2025-12-07 00:04:37 +09:00
f3b0f295a8 Added new TempJobAllocator
Added new AllocationHandle property in Stack.Scope.

Changed the ref AllocationHandle constructor parameter to AllocationHandle on of all UnsafeCollection types
Removed Allocator.Stack. Use Stack.Scope.AllocationHandle to allocate on stack instead.
2025-12-06 22:16:39 +09:00
d6c472753d Added Equals to UnsafeBitSet and SpanBitSet 2025-12-05 21:28:59 +09:00
4dd5d6f1c6 Add iterators to UnsafeBitSet and SpanBitSet
Introduced `Iterator` structs in `UnsafeBitSet` and `SpanBitSet`
to enable efficient traversal of set bits. Added `GetIterator`
methods to both structs to return iterator instances. Implemented
`NextSetBit` in `SpanBitSet` to support iterator functionality.

Changed constants in `UnsafeBitSet` from `private` to `internal`
for broader assembly access. Removed redundant methods from
`SpanBitSet` to streamline the API in favor of iterator-based
operations.

Updated constructors in `UnsafeSlotMap` and `UnsafeSparseSet` to
conditionally clear arrays based on `AllocationOption.Clear`.

Incremented assembly version to 1.2.7 to reflect these updates.
2025-12-05 16:36:02 +09:00
c152e4383d Added GetHashCode to UnsafeBitSet 2025-12-03 20:03:42 +09:00
0ad4322058 Fixed memory lack bug caused by UnsafeSlotMap 2025-11-27 16:18:17 +09:00
20320c52a1 Fixed memory lack bug caused by UnsafeSlotMap 2025-11-27 16:17:24 +09:00
2431c3d602 Updated package version 2025-11-27 15:18:39 +09:00
a26a91769f Added DebugSymbol package 2025-11-27 15:18:14 +09:00
48f50e79fd Merge branch 'main' of https://git.personalnas.com/Misaki/Misaki.HighPerformance 2025-11-27 15:03:15 +09:00
8f4a2aa5d6 Update DebugSymbols 2025-11-27 15:03:05 +09:00
b71ab18050 Update DebugSymbols 2025-11-27 15:02:33 +09:00
b67569aa14 Improve AsSpan, CopyTo, and CopyFrom for IUnsafeCollection 2025-11-27 14:04:46 +09:00
f4e803e5a4 Updated package version 2025-11-25 14:25:48 +09:00
4bcd300a1c Merge pull request 'develop' (#5) from develop into main
Reviewed-on: #5
2025-11-25 03:32:41 +00:00
459f4ba9ee Merge branch 'develop' of https://git.personalnas.com/Misaki/Misaki.HighPerformance into develop
Some checks failed
Publish NuGet Packages / publish (pull_request) Failing after 2m14s
# Conflicts:
#	Misaki.HighPerformance.LowLevel/Collections/UnsafeBitSet.cs
#	Misaki.HighPerformance.Test/UnitTest/Collections/TestUnsafeBitSet.cs
2025-11-25 12:31:16 +09:00
3269244ab1 Refactor memory management with MemoryHandle
Replaced `SafeHandle` with a new `MemoryHandle` system for improved memory tracking, safety, and leak detection. Updated allocators (`ArenaAllocator`, `HeapAllocator`, `StackAllocator`) and collections (`UnTypedArray`, `UnsafeArray<T>`, `UnsafeBitSet`) to use `MemoryHandle`.

Refactored `AllocationManager` to use `ConcurrentSlotMap` for live allocation tracking and added methods for managing `MemoryHandle` instances. Simplified alignment and padding logic across allocators and collections.

Enhanced performance with optimized memory operations (`MemClear`, `MemSet`, `MemCpy`) and vectorized operations in `MemoryUtility` and `UnsafeBitSet`. Fixed alignment issues in vectorized memory operations.

Updated tests to reflect the new memory management system and added new tests for `UnsafeBitSet` bitwise operations. Enabled `ENABLE_COLLECTION_CHECKS` for debug builds and improved error messages and documentation.

Removed unused `SafeHandle` code and adjusted project configuration to include necessary references.
2025-11-25 12:27:10 +09:00
8418d3df7b Refactor memory management with MemoryHandle
Replaced `SafeHandle` with a new `MemoryHandle` system for improved memory tracking, safety, and leak detection. Updated allocators (`ArenaAllocator`, `HeapAllocator`, `StackAllocator`) and collections (`UnTypedArray`, `UnsafeArray<T>`, `UnsafeBitSet`) to use `MemoryHandle`.

Refactored `AllocationManager` to use `ConcurrentSlotMap` for live allocation tracking and added methods for managing `MemoryHandle` instances. Simplified alignment and padding logic across allocators and collections.

Enhanced performance with optimized memory operations (`MemClear`, `MemSet`, `MemCpy`) and vectorized operations in `MemoryUtility` and `UnsafeBitSet`. Fixed alignment issues in vectorized memory operations.

Updated tests to reflect the new memory management system and added new tests for `UnsafeBitSet` bitwise operations. Enabled `ENABLE_COLLECTION_CHECKS` for debug builds and improved error messages and documentation.

Removed unused `SafeHandle` code and adjusted project configuration to include necessary references.
2025-11-25 00:56:21 +09:00
cced0393d6 Merge branch 'main' of https://git.personalnas.com/Misaki/Misaki.HighPerformance 2025-11-23 13:56:50 +09:00
fe91488319 Update .gitea/workflows/publish-nuget.yaml
Updated workflow
2025-11-23 04:52:25 +00:00
517abd64d6 Updated package version 2025-11-23 13:50:29 +09:00