Re: [RFC] resource: Avoid unnecessary resource tree walking in __region_intersects()
From: Andy Shevchenko
Date: Fri Oct 11 2024 - 06:52:07 EST
On Fri, Oct 11, 2024 at 04:48:25PM +0800, Huang, Ying wrote:
> David Hildenbrand <david@xxxxxxxxxx> writes:
> > On 11.10.24 03:06, Huang, Ying wrote:
...
> > And just I understand what we want to achieve: we want to walk the
> > subtree below "root" and prevent going to root->sibling or
> > root->parent if "root" is not actually the "real root", correct?
> >
> > X
> > |--------|
> > A----D E
> > |
> > B--C
> >
> > So assume we start walking at A, we want to evaluate A,B,C but not D,E,X.
> >
> > Does that sum up what we want to achieve?
>
> Yes.
Can this explanation be added to the commit message of the next version of
the patch?
--
With Best Regards,
Andy Shevchenko