1 The cost of using a unifying abstraction like closure core count is low when dealing with vectors, maps, or sets because it proxies to a simple Java function with minimal overhead.
“Closure laying RT count is pretty straightforward. It checks whether or not it's an instance of closure laying counted, which is true of a vector or a map or a set. And if it is, it calls .count. Otherwise, it calls count from, which is a slightly more complex function, which has handlers”