Slow batch rename dialog [FIXED]

Questions, glitches, bugs and crashes
Locked
pwu
Posts: 33
Joined: Mon Apr 26, 2021 2:46 pm

Slow batch rename dialog [FIXED]

Post by pwu » Sun May 02, 2021 10:15 pm

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!

User avatar
mike
Posts: 1060
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

Re: Slow batch rename dialog

Post by mike » Mon May 03, 2021 8:15 am

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.

pwu
Posts: 33
Joined: Mon Apr 26, 2021 2:46 pm

Re: Slow batch rename dialog

Post by pwu » Mon May 03, 2021 2:37 pm

thank you, you are the best! :)

User avatar
mike
Posts: 1060
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

Re: Slow batch rename dialog

Post by mike » Fri May 28, 2021 9:28 pm

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.

pwu
Posts: 33
Joined: Mon Apr 26, 2021 2:46 pm

Re: Slow batch rename dialog [FIXED]

Post by pwu » Sat May 29, 2021 10:14 am

amazing, thank you! it will be released with the next preview, right?

User avatar
mike
Posts: 1060
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

Re: Slow batch rename dialog [FIXED]

Post by mike » Sat May 29, 2021 8:33 pm

Yes, next preview will have the fix.

Locked