Skip to content

ZiggyAlloc 1.2.6

Choose a tag to compare

@alexzzzs alexzzzs released this 21 Sep 05:52
· 55 commits to main since this release

Full Changelog: v1.2.5...v1.2.6

What is new?

Enhanced Allocators

Improved error handling in all allocator classes
Better resource tracking and memory management
Enhanced thread safety for concurrent operations

Developer Experience

Comprehensive debug logging for troubleshooting
Better error messages and exception handling
Cleaner, more maintainable codebase

Architecture Enhancements

Singleton Pattern: Refactored to use thread-safe lazy initialization
Error Handling: Consistent debug logging throughout the codebase
Resource Management: Improved disposal ordering and cleanup
Code Quality: Removed redundant checks and enhanced clarity
Constants: Added named constants for better maintainability

Installation
dotnet add package ZiggyAlloc --version 1.2.6

Upgrade Recommendation

This release is highly recommended for all users as it significantly improves stability, reliability, performance, and debugging capabilities while maintaining full backward compatibility. The enhanced error handling, thread safety, and performance optimizations make it particularly suitable for production environments.

Files Modified:

src/Allocators/SystemMemoryAllocator.cs - Performance optimizations
src/Allocators/HybridAllocator.cs - Logic fixes and constants
src/Allocators/SlabAllocator.cs - Null safety improvements
src/Core/UnmanagedBuffer.cs - Enhanced error handling
src/Lifetime/AutoFree.cs - Null pointer validation
src/Lifetime/DeferScope.cs - Input validation
src/Z.cs - Thread-safe singleton pattern
CHANGELOG.md - Updated with all improvements
ZiggyAlloc.csproj & ZiggyAlloc.Main.csproj - Version updates