Closed alextheimer closed 3 months ago
@yu-shipit I've updated my "10x" claim in the header -- it is closer to 4x more performant with some more-comprehensive tests.
I tested this by loading two ColumnFilterMap
implementations with the same real-world mappings. Then I wrote a getSeries
method that returned
For each implementation, I called getSeries
and columnFilterMap.get(...)
1M times and recorded the total time each took to complete. A typical result (in milliseconds):
DefaultColumnFilterMap: 2199
FastColumnFilterMap: 611
Pull Request checklist
Adds
FastColumnFilterMap
. Snippet from the javadoc:Local tests demonstrate that-- although it is significantly more constrained--
FastColumnFilterMap
is about 4x faster thanDefaultColumnFilterMap
in these limited-filtering scenarios.