diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-02-07 01:05:56 -0500 |
---|---|---|
committer | Riku Voipio <riku.voipio@nokia.com> | 2011-02-09 10:33:54 +0200 |
commit | 2296f194dfde4c0a54f249d3fdb8c8ca21dc611b (patch) | |
tree | 1d3951bddc0537529738b04f780c7c2be2631eec /linux-user/strace.c | |
parent | 737de1d1357b13f162b26ca0b775eb375594833a (diff) |
user: speed up init_paths a bit
The current init_paths code will attempt to opendir() every single file it
finds. This can obviously generated a huge number of syscalls with even a
moderately small sysroot that will fail. Since the readdir() call provides
the file type in the struct itself, use it. On my system, this prevents
over 1000 syscalls from being made at every invocation of a target binary,
and I only have a C library installed.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Riku Voipio <riku.voipio@nokia.com>
Diffstat (limited to 'linux-user/strace.c')
0 files changed, 0 insertions, 0 deletions