Class SymbolRegistry
java.lang.Object
com.quantfinlib.marketdata.SymbolRegistry
Interns instrument symbols to dense int ids so the hot path never touches
String hashing or map lookups: resolve the id once at subscription
time, then publish and dispatch with primitive ints only.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SymbolRegistry
public SymbolRegistry()
-
-
Method Details
-
register
Registers (or looks up) a symbol; returns its stable dense id. -
id
Id of an already-registered symbol. -
symbol
-
size
public int size()
-