Performance degradation in folders with thousands of files

ImageMagickObject is a Windows COM+ interface to ImageMagick. COM+, Visual Basic, and Delphi users should post to this discussion group.
Post Reply
vhugoalv
Posts: 2
Joined: 2017-09-05T03:55:14-07:00
Authentication code: 1151

Performance degradation in folders with thousands of files

Post by vhugoalv »

Using convert method from shell or COM+ object in folders with 32000 files takes 12 seconds to perform in one file.
Moving the same file to an empty folder and using the same code, takes 1 second to perform.
What can be the issue?

Code:
C:\PROGRAM FILES (X86)\ImageMagick-6.9.1-Q16\convert "\largefolder\file.bmp" -resize 525x525 -gravity center -background white -extent 525x740 "C:\TEMP\{CB36BF73-6C57-11E7-982E-78E7D1CA402C}.bmp.jpg"
vhugoalv
Posts: 2
Joined: 2017-09-05T03:55:14-07:00
Authentication code: 1151

Re: Performance degradation in folders with thousands of files

Post by vhugoalv »

It occurs in last version too.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Performance degradation in folders with thousands of files

Post by snibgo »

IM simply asks the operating system to open files. If that takes a long time in directories with many files, the same problem would occur with other programs.

What version of Windows? What is the filing system? Old versions of these gave bad performance when directories contained many files.
snibgo's IM pages: im.snibgo.com
Post Reply