|
|
|
|
|
by rrss
2357 days ago
|
|
Seems like these criteria miss the use case for mm_rb, one of the central red-black trees in linux. If you need to be able to store intervals (i.e. virtual memory areas) and do lookups based on any address in the interval, not just the base address, I don't think a hash map is the best option. |
|
I would be curious if anyone has ever profiled the impact of changing mm_rb to a B-tree. It might be very difficult if existing code that uses mm_rb depends on pointer stability, though.