docs: Simplify v2.6 changelog to match format of other versions
This commit is contained in:
1 parent
8183c1766f
commit
7bcaee00a2
1 file changed
+18
-65
+18
-65
@@ -3,74 +3,27 @@
|
|||||||
|
|
||||||
# [v2.6]
|
# [v2.6]
|
||||||
### Changes
|
### Changes
|
||||||
- **Comprehensive Code Quality Overhaul**: Major refactoring with 31 critical issues fixed
|
- Major code quality and performance improvements
|
||||||
- **New Performance Utilities**:
|
- Comprehensive refactoring with 31 critical issues fixed
|
||||||
- **PerformanceOptimizer**: Device-aware optimization that adapts frame rates, buffer sizes, and thread pools based on available memory
|
- Optimized divisor calculation algorithm (90% faster)
|
||||||
- **BufferPool**: Object pooling for byte arrays to dramatically reduce garbage collection pressure
|
- Added SharedPreferences caching (70% faster)
|
||||||
- **PerformanceMonitor**: Real-time performance metrics tracking for identifying bottlenecks
|
- Implemented buffer pooling to reduce GC pressure
|
||||||
- **ResourceManager**: Lifecycle-aware resource management to prevent leaks
|
- New PerformanceOptimizer utility for device-aware optimization
|
||||||
- **Performance Optimization**:
|
- New BufferPool for object reuse
|
||||||
- Divisor calculation algorithm optimized from O(n) to O(√n) - ~90% faster
|
- New PerformanceMonitor for metrics tracking
|
||||||
- Implemented in-memory caching for SharedPreferences - ~70% faster preference access
|
- New ResourceManager for lifecycle management
|
||||||
- Added buffer pooling for image frame processing - reduced GC pressure
|
- Replaced Thread() calls with ExecutorService
|
||||||
- Replaced individual Thread instantiation with ExecutorService thread pooling
|
- Removed blocking Thread.sleep() calls
|
||||||
- Optimized WeakReference dereferencing to reduce object allocation
|
- Device-adaptive behavior for low-memory devices
|
||||||
- Device-adaptive behavior for low-memory devices (< 1GB)
|
|
||||||
- Smart thread pool sizing based on CPU cores and RAM
|
|
||||||
- **Memory Leak Fixes**:
|
|
||||||
- Removed redundant context storage in FadingImageView
|
|
||||||
- Fixed static field lifecycle management
|
|
||||||
- Proper executor service shutdown in HyperionScannerTask
|
|
||||||
- Enhanced garbage collection efficiency
|
|
||||||
- New ResourceManager for centralized resource cleanup
|
|
||||||
- **Threading & Concurrency Improvements**:
|
|
||||||
- Eliminated race conditions in volatile field access
|
|
||||||
- Replaced blocking Thread.sleep() with Handler.postDelayed()
|
|
||||||
- Non-blocking retry logic for foreground service startup
|
|
||||||
- Better synchronization for concurrent operations
|
|
||||||
- Thread pool size optimization based on device capabilities
|
|
||||||
- **Enhanced Error Handling**:
|
|
||||||
- Added comprehensive null safety checks for ActivityManager and MediaProjectionManager
|
|
||||||
- Proper exception handling for ImageReader and network operations
|
|
||||||
- Specific exception handling for ForegroundServiceStartNotAllowedException
|
|
||||||
- Detailed error logging for debugging and monitoring
|
|
||||||
- Resource cleanup on error paths
|
|
||||||
- **Code Quality**:
|
|
||||||
- Removed unsafe assert statements (now proper null checks)
|
|
||||||
- Added timeout handling for network I/O operations
|
|
||||||
- Better resource cleanup and lifecycle management
|
|
||||||
- Improved battery efficiency through optimized threading
|
|
||||||
- Performance metrics integration for debugging
|
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- NPE when ActivityManager returns null
|
- NPE issues with ActivityManager and MediaProjectionManager
|
||||||
- Race conditions in display callback handling
|
- Memory leaks from context storage
|
||||||
- Memory leaks from context storage in views
|
- Race conditions in threading
|
||||||
- Thread leaks from ExecutorService not being shutdown
|
- Excessive garbage collection
|
||||||
- Main thread blocking on Thread.sleep() calls
|
|
||||||
- Inefficient service enumeration with getRunningServices()
|
|
||||||
- WeakReference being dereferenced multiple times
|
|
||||||
- Missing error handling for media projection operations
|
|
||||||
- Foreground service startup failures without recovery
|
|
||||||
- Preference access causing excessive disk I/O
|
|
||||||
- Excessive garbage collection on low-memory devices
|
|
||||||
- Resource leaks from improper cleanup
|
- Resource leaks from improper cleanup
|
||||||
|
- Foreground service startup failures
|
||||||
### Performance Gains
|
- Preference access causing disk I/O bottlenecks
|
||||||
- Frame processing: Reduced allocations through buffer reuse and pooling
|
|
||||||
- Preference access: 70% faster due to in-memory caching
|
|
||||||
- Divisor calculation: 90% faster with GCD algorithm
|
|
||||||
- Memory footprint: Reduced through proper object lifecycle
|
|
||||||
- Garbage collection: Dramatically reduced on low-memory devices through object pooling
|
|
||||||
- Battery life: Improved through better thread management and reduced CPU wake-ups
|
|
||||||
- App responsiveness: Enhanced through non-blocking operations
|
|
||||||
- Device adaptation: Optimal performance on both low-end and high-end devices
|
|
||||||
|
|
||||||
### New Developer Features
|
|
||||||
- Performance monitoring API for tracking critical operations
|
|
||||||
- Device capability detection for adaptive optimization
|
|
||||||
- Buffer pooling statistics for memory profiling
|
|
||||||
- Resource lifecycle tracking for leak detection
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user