Re: [PATCH v2] kselftest: dt: Stop relying on dirname to improve performance

2024-01-29 Thread Mark Brown
On Mon, Jan 22, 2024 at 09:40:43AM -0600, Rob Herring wrote: > On Mon, Jan 22, 2024 at 11:29:18AM -0300, Nícolas F. R. A. Prado wrote: > > When walking directory trees, instead of looking for specific files and > > running dirname to get the parent folder, traverse all folders and > > ignore the o

Re: [PATCH v2] kselftest: dt: Stop relying on dirname to improve performance

2024-01-22 Thread Rob Herring
On Mon, Jan 22, 2024 at 11:29:18AM -0300, Nícolas F. R. A. Prado wrote: > When walking directory trees, instead of looking for specific files and > running dirname to get the parent folder, traverse all folders and > ignore the ones not containing the desired files. This avoids the need > to call d

[PATCH v2] kselftest: dt: Stop relying on dirname to improve performance

2024-01-22 Thread Nícolas F . R . A . Prado
When walking directory trees, instead of looking for specific files and running dirname to get the parent folder, traverse all folders and ignore the ones not containing the desired files. This avoids the need to call dirname inside the loop, which drastically decreases run time: Running locally on