Currently, the OrCardinality function materializes temporary containers that are immediately (?) garbage collected. This is wasteful. Instead, we should have fast container-to-container union functions that just return the cardinality without doing memory allocation, as is the case with the intersections.
|
// TODO: could be faster if we did not have to materialize the container |
c.c. @tgruben @statik @bpot @tvmaly
Currently, the OrCardinality function materializes temporary containers that are immediately (?) garbage collected. This is wasteful. Instead, we should have fast container-to-container union functions that just return the cardinality without doing memory allocation, as is the case with the intersections.
roaring/roaring.go
Line 416 in db18267
c.c. @tgruben @statik @bpot @tvmaly