1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-12 02:30:30 +09:00

Kernel: Replace process' regions vector with a Red Black tree

This should provide some speed up, as currently searches for regions
containing a given address were performed in O(n) complexity, while
this container allows us to do those in O(logn).
This commit is contained in:
Idan Horowitz 2021-04-07 02:20:29 +03:00 committed by Andreas Kling
parent 497c759ab7
commit 2c93123daf
Notes: sideshowbarker 2024-07-18 20:28:19 +09:00
7 changed files with 89 additions and 97 deletions

View file

@ -203,8 +203,8 @@ void PerformanceEventBuffer::add_process(const Process& process)
for (auto& region : process.space().regions()) {
sampled_process->regions.append(SampledProcess::Region {
.name = region.name(),
.range = region.range(),
.name = region->name(),
.range = region->range(),
});
}