KeyValueQuery

com.netflix.atlas.core.model.KeyValueQuery

Check performance of special case in KeyValueQuery to use SmallHashMap.getOrNull when possible instead of Map.get. This avoids an allocation for the Option and a little bit of overhead for the lambda invocation. For tight loops such as checking the query for a high volume streaming path it provides a noticeable benefit.

> jmh:run -prof gc -wi 10 -i 10 -f1 -t1 .*KeyValueQuery.*

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def checkMap(bh: Blackhole): Unit
def checkSmallMap(bh: Blackhole): Unit