iustin / pyxattr

A python module for accessing filesystem Extended Attributes
https://pyxattr.k1024.org/
GNU Lesser General Public License v2.1
30 stars 15 forks source link

Better handling of files without xattrs #4

Closed edelkind closed 10 years ago

edelkind commented 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.

iustin commented 10 years ago

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.

iustin commented 10 years ago

Released in version 0.5.3 (https://pypi.python.org/pypi/pyxattr/0.5.3). Thanks!