« Previous | Next » 

Revision 2296f194

ID2296f194dfde4c0a54f249d3fdb8c8ca21dc611b

Added by Mike Frysinger about 13 years ago

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 <>
Signed-off-by: Riku Voipio <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences