• Brian Curtin's avatar
    Fix #11583. Changed os.path.isdir to use GetFileAttributes instead of os.stat. · 9c669ccc
    Brian Curtin yazdı
    By changing to the Windows GetFileAttributes API in nt._isdir we can figure
    out if the path is a directory without opening the file via os.stat. This has
    the minor benefit of speeding up os.path.isdir by at least 2x for regular
    files and 10-15x improvements were seen on symbolic links (which opened the
    file multiple times during os.stat). Since os.path.isdir is used in
    several places on interpreter startup, we get a minor speedup in startup time.
    9c669ccc
Adı
Son kayıt (commit)
Son güncelleme
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.bzrignore Loading commit data...
.gitignore Loading commit data...
.hgeol Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...