The performance of arcpy.ListFiles is slower than the core Python pathlib Listfile functions, especially over the Universal Naming Convention (UNC) network paths.
上次发布: December 30, 2022ArcGIS Pro
漏洞 ID 编号
BUG-000151714
已提交
August 19, 2022
上次修改时间
October 7, 2024
适用范围
ArcGIS Pro
找到的版本
3.0
操作系统
Windows OS
操作系统版本
10.0
状态
Known Limit
经开发团队审核,已确定此问题与不受 Esri 控制的软件的已知限制有关。 问题的“其他信息”部分可能包含进一步说明。
附加信息
The performance continues to be a significant focus area.
For this case, pathlib does direct calls to the filesystem, while arcpy.ListFiles goes through the various ArcGIS Pro data sources that support 'file' object. Pathlib is always dramatically faster and is a good option for iterating files in lieux of arcpy.ListFiles.
In ArcGIS Pro 3.1 the performance of network file access (folders, files, etc.) is improved, and this issue is to be re-tested once the release is publicly available.