Closed edelkind closed 10 years ago
Return an empty list immediately if a file has no xattrs (as most would not on most systems). The number of system calls for files with no extended attributes is reduced by (at least) half.
Thanks, I'll take a look and merge this sometimes next week, right now I can't; the patch looks reasonable from a quick preview.
Released in version 0.5.3 (https://pypi.python.org/pypi/pyxattr/0.5.3). Thanks!
Return an empty list immediately if a file has no xattrs (as most would not on most systems). The number of system calls for files with no extended attributes is reduced by (at least) half.