File Details
Chunky-1.3.8.jar
- R
- Jan 9, 2026
- 323.83 KB
- 5.9K
- 1.20.1
- Forge
File Name
Chunky-1.3.8.jar
Supported Versions
- 1.20.1
Curse Maven Snippet
Honestly, pretty minor changes and don't affect things much in practice, but nice to have i suppose:
Performance Optimizations
Phase 1 - Core Optimizations:
- ChunkCoordinate: Eliminated autoboxing in
hashCode()andtoString()methods - Formatting.number(): Replaced synchronized static DecimalFormat with ThreadLocal to eliminate global lock contention
- Circle.isBounding(): Replaced
Math.hypot()with squared distance comparison to eliminate sqrt calculation - BukkitWorld.getDirectory(): Changed from recursive
Files.walk()to direct path resolution - EventBus: Removed redundant
containsKey()beforecomputeIfAbsent() - RegionCache: Removed redundant
containsKey()before map access
Thread-Safety Improvements:
- EventBus: Migrated from HashMap/HashSet to ConcurrentHashMap for thread-safe event handling
Concurrency Tuning:
- Hardware-aware defaults: Thread pools now scale automatically with available CPU cores
- Configurable via system properties:
chunky.maxWorkingCount- Maximum concurrent chunk operationschunky.callbackThreads- Callback executor pool sizechunky.schedulerCoreThreads- Scheduler core pool sizechunky.schedulerMaxThreads- Scheduler max pool sizechunky.schedulerQueueSize- Scheduler queue capacity