glocalfile: Only check for .hidden files if standard::is-hidden is requested
authorColin Walters <walters@verbum.org>
Fri, 11 Jan 2013 16:10:15 +0000 (11:10 -0500)
committerColin Walters <walters@verbum.org>
Fri, 11 Jan 2013 16:14:12 +0000 (11:14 -0500)
commit8fe8dcda1e6c3d799a0409ef983811d9c659a3cf
treed8ff79c505083cae6bfbb561a29201e5d290b8ff
parenta1f40adf733b64500b09e0d02d51967b43df9ee5
glocalfile: Only check for .hidden files if standard::is-hidden is requested

For OSTree, I use Gio and also really care about performance.  It's
disturbing to see open('.hidden') all over my straces and such.  At
the moment I have an explicit set of things to query, as opposed to
"standard::*", since even before this that also implies an lstat() of
the parent directory.

This matches up with what we do for all the other attributes.

See https://bugzilla.gnome.org/show_bug.cgi?id=587806
https://bugzilla.gnome.org/show_bug.cgi?id=691558
gio/glocalfileinfo.c