laptop and a wrench

漏洞

Importing the ArcPy and the ArcGIS modules affect the performance of multiprocessing modules.

上次发布: October 4, 2022 ArcGIS Pro
漏洞 ID 编号 BUG-000148712
已提交April 22, 2022
上次修改时间February 20, 2025
适用范围ArcGIS Pro
找到的版本N/A
操作系统N/A
操作系统版本N/A
状态As Designed

附加信息

When using the Multiprocessing with a Pool object, Multiprocessing creates separate processes up to the process count specified. Similarly, for Process, it creates a separate process for each operation. Both ArcPy and ArcGIS API for Python import a significant number of libraries and Dynamic link-library (DLL)s, and import time can vary from a couple of seconds to 15+ seconds for a fully loaded deep learning environment with the Python API. Because of how multiprocessing works, every process created incurs this same cost. In real workflows, typically the import cost is low relative to the other actions of the script, and the cost is amortized in the Pool case in particular. But there are cases where avoiding using either Python API improves performance because of the associated import costs.

重现步骤

漏洞 ID: BUG-000148712

软件:

  • ArcGIS Pro

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项