Java Zero Garbage

Lib

Network

  • Aeron
  • fastutil

CAS

  • Unsafe
  • AtomicReference

Framework

  • Disruptor

Object Pools

  • Apache Pool2: 性能一般
  • vibur-object-pool + Conversant Disruptor:

Operation System

CPU Cache Performance

  • L1
    • 4 cycles
  • L2
    • 10 cycles
  • L3
    • local:40~75 cycles
    • remote:100~300 cycles
  • Draw
    • local:60ns
    • remote:100ns

CPU Cache Line

False Sharing

https://www.cnblogs.com/cyfonly/p/5800758.html

Coding

Reference vs Primitives

Caculations

  • long
  • Double
  • BigDecimal

java.util vs fastutil

http://java-performance.info/hashmap-overview-jdk-fastutil-goldman-sachs-hppc-koloboke-trove-january-2015/