Preset with 50+ methods is incredibly slow to load

Advanced Renamer forum
#1 : 26/06-24 23:42
Christopher J Mischler
Christopher J Mischler
Posts: 1
I have a preset with over 50 methods, and loading the preset (or opening the app with that preset previously loaded) takes upwards of 30-45 seconds, even with no files selected yet. Each method takes somewhere around 500-700ms to load, one after the other. This seems like a bug - why would loading these (relatively simple) methods take so long, even before there are any files to process?


26/06-24 23:42
#2 : 27/06-24 05:58
Delta Foxtrot
Delta Foxtrot
Posts: 264
Reply to #1:

Hi Christopher,

That does seem excessive, but it's not enough information to make any sort of judgement. Your hardware, other running software, how long since your last restart, etc etc etc, all make a simple statement of loading time meaningless by itself.

I have a preset with 211 methods and I just timed it at 33 seconds to load. I restarted my i9-based, 32gb memory, 1Tb SSD laptop very recently and only have 9 applications (including 19 browser pages), 83 background processes and 102 Windows processes (including an extensive anti-malware system and VPN). And while most of the methods are relatively simple, some are quite complex regexes. Also I'm using the latest ARen version (3.95).

CPU load at idle, 2%; memory 11.2/31.7Gb.

Before loading that instance of ARen I started one with 35 methods, in about 8 seconds. After loading the big instance it took that same 35 method preset more like 12-13 seconds. An instance with 1 (script) method took around 3 seconds. A second loading of the big preset then too 34.1 seconds.

All times are approximate. Each instance was loaded with no files in the file list.

Hope this adds some perspective.

Best,
DF




27/06-24 05:58 - edited 27/06-24 05:59
#3 : 27/06-24 08:40
Kim Jensen
Kim Jensen
Administrator
Posts: 897
Reply to #1:
What type of methods are they? If you have many tags in use, the parsing and validation of those tags may take som time, but not that long. Loading a method usually only takes a couple of ms.


27/06-24 08:40