Page 1 of 1

Slow batch rename dialog [FIXED]

Posted: Sun May 02, 2021 10:15 pm
by pwu
Hello,

NC has amazing batch rename tool but I've experienced strange problem trying to rename (actually change extension) of 7800+ files. Any change in any field of Batch rename dialog takes up to 30 seconds (so it takes around 90 seconds just to type 3 characters for new extension). Though actual renaming (after I hit enter) is quite fast. It's the same for any large amount of files (I guess for more than 2-3 thousands of files). And it's quite responsive for smaller amount of files (really instant updates for 500 files and less). Is it normal behaviour?

Than you and have a nice day!

Re: Slow batch rename dialog

Posted: Mon May 03, 2021 8:15 am
by mike
Hi, thanks for reporting.
Seems there's some pesky algorithmic complexity issue in the that UI (see "Dawson's first law of computing").
I'll take a look.

Re: Slow batch rename dialog

Posted: Mon May 03, 2021 2:37 pm
by pwu
thank you, you are the best! :)

Re: Slow batch rename dialog

Posted: Fri May 28, 2021 9:28 pm
by mike
Fixed.
Indeed there was a silly implementation of validation with O(n^2) complexity instead of O(n).
Now it works instantaneous with 10'000 items to rename, as is should have done in the first place - for a modern hardware it's a cakewalk.

Re: Slow batch rename dialog [FIXED]

Posted: Sat May 29, 2021 10:14 am
by pwu
amazing, thank you! it will be released with the next preview, right?

Re: Slow batch rename dialog [FIXED]

Posted: Sat May 29, 2021 8:33 pm
by mike
Yes, next preview will have the fix.