| From | Namhyung Kim <> | Date | Wed, 29 Nov 2023 17:49:49 -0800 | Subject | Re: [PATCH v5 06/50] tools lib api: Add io_dir an allocation free readdir alternative |
| |
On Mon, Nov 27, 2023 at 2:09 PM Ian Rogers <irogers@google.com> wrote: > > glibc's opendir allocates a minimum of 32kb, when called recursively > for a directory tree the memory consumption can add up - nearly 300kb > during perf start-up when processing modules. Add a stack allocated > variant of readdir sized a little more than 1kb. > > Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Thanks, Namhyung
|