- Reduced GC pressure and memory usage by eliminating time.After patterns, optimizing filestore scans, and improving state allocation estimation.
- Added concurrency safeguards: moved filestore cleanup/deletion to background goroutine, throttled writeFullState, and fixed data races and potential deadlocks in JetStream, MQTT, and WebSocket subsystems.
- Fixed several panics and bugs, including JWT permissions template handling, leafnode URL concatenation, stream scaling limit checks, and DiscardNew byte‑count calculation.