High Performance Managed Languages
summary
Argues managed runtimes (Java/.NET/JS) can equal or beat native for many CPU+memory workloads by using JIT-driven optimizations: profile-guided specialization, inlining and intrinsics (popcount, CMOV), inline caching for polymorphism, and careful GC/NUMA tuning. Shows a measured loop over 1GB giving about 0.1 ns per operation, memory access patterns causing two orders of magnitude variance, G1’s ~2048 regions and string dedupe, and that enabling -XX:+UseNUMA can improve throughput ~30%.
AI-written summary · about
chapters (19)
- 0:00Introduction
- 0:43Whats your preferred language
- 2:06Context
- 2:21Latency Arbitrage
- 3:01Native Languages
- 4:32Timing
- 5:35Average time per operation
- 6:17Instructions per operation
- 6:35Modern CPUs
- 8:28Access Patterns
- 12:17Profile Guided Optimization
- 16:51Branch Prediction
- 18:37Inline Methods
- 21:35Optimization
- 28:52Garbage Collection
- 36:42Garbage Collectors
- 44:05Time
- 45:11Surprise
- 48:10The future
