Oh, I missed log_to_span. Well, in that case log_to_span is_the_ candidate for moving into a separate allocation.And in fact you're probably better off by using a sensible datastructure for it, e.g. a radix tree.