Werner Almesberger wrote:
I wrote:
quoted
BTW, regarding overlapping requests, I wonder if there's a data
structure that gives O(log requests) or such lookups for ranges.
Seem that I've found one that is maybe 2-4 times as expensive as a
single tree. It works as follows: if we have a set of ranges (a,b)
and want to see if any of them overlap with a range (x,y), we
compare the indices of the matches (or almost-matches).
Is the prio_tree data structure, the one being used by recent VM work,
which keeps track of ranges, any use?
-- Jamie