The attached patch adds a new CYGWIN environment variable, statquery. This causes stat() to use set_query_open(TRUE) all the time, which dramatically improves the performance on e.g. ls -lR operations or configure. For example, an ls -lR of the 'ntop' distribution goes from 34seconds to 2seconds on my computer on a local filesystem. The actual change is extremely trivial.
statquery.diff
Description: Binary data
