Slow import times on CPUs with high core/thread count (on Windows)
Environment/Versions
-
GIMP Version: 2.10.32
-
Package: installer from gimp.org
-
Operating System: Windows 10 (21H1)
-
CPU: AMD Ryzen Threadripper 3960X (24 cores / 48 threads)
-
GPU: NVIDIA GTX 1080 ti (driver 472.12)
-
RAM: 128 gb
Issue Description
I am experiencing a noticeable delay that occurs before an image is loaded into GIMP, and if several image files are being imported, then the delay occurs for each file. The delay seems to be directly related to the number of active CPU threads/cores.
When my system has all 48 CPU threads active, GIMP will take 3-4 seconds to import a small jpg or png image. Lowering the CPU thread count will noticeably shorten the import times, with the best results occurring with only 1 or 2 CPU threads active in the OS.
(I'm adjusting the CPU thread count through Windows's bootloader config. Changing the option for "Number of theads to use" in GIMP's preferences does not have any effect.)
Performance Log
Performance Log Description
After starting the log recording, I loaded 8 images into GIMP by drag-and-dropping the files into the workspace. Recording was stopped after all images were imported.
Additional Information
- I have tried older stable builds to see when this performance issue was introduced. It looks like GIMP 2.10.14 is it.
- There were 4 builds of 2.10.14 for Windows that I could find on gimp.org's download section. Version 2.10.14-0 and 2.10.14-1 did NOT exhibit the performance issue; 2.10.14-2 always crashes on my machine; 2.10.14-3 definitely has the performance issue.
- I also tested a handful of stable releases after 2.10.14 up through 2.10.32 and they all have the issue.
- This performance issue does not occur with Linux on the same machine.