Problem with wildcard labels?

I notice a very long delay (8-10sec) opening a folder with about 5000 .txt files.

I removed my wildcard labels and the folder is displayed instantly.

I can't recall never having such a problem with the old version.

I have about 70 wildcard labels (same as with the old version)!

Any ideas/suggestions?

Thank you in advance!

J!

Something to check:

  • Re-read the folder without changing anything
    (presumably that is still fast, but if not, stop there, as it tells us something else is making things slow)
  • Add the wildcard labels back
  • Re-read the folder again
    (is it slow again, or fast again?)

It's possible it was only slow the first time it was read, and the wildcard labels weren't the thing slowing it down. That test should tell us if it's the case.

Lots of wildcards and lots of filenames will create some overhead (5000 x 70 = 350,000 wildcard tests), but the amount of time it takes shouldn't have increased between versions.

I change to the folder DELAY.
I change to the next folder (a few files) FAST
I change back to the first folder same DELAY

Hope it helps...

J!

So the delay is there regardless of the wildcard labels?

No I did not change the labels. But the results are not cached!

My Drive is Samsung 990 Pro on a 4th Gen motherboard with I7 (12th gen) CPU...

I repeated the test...

I back up my config.

I select all my wildcard labels and delete them all.

Loading big folders is blazing fast!!!

I restored my config and the problem is back!

I will install old version to verify if it is a new problem!

... hold on...

Sorry!!! I reinstalled the old version and tested again...

The time delay loading these foldes is the same on both versions (old and new)...

So do you suggest I should reduce my Labels?

Are there any suggestions?

Thank you for your time!!!

J!

How many labels do you have? I'd be surprised if pure wildcard labels made that much difference. Filter labels can be slower but they're mostly calculated in the background.

You can test my config as it is posted at:
Dark Blue Theme - #24 by johntor
(last post)

only a few are missing...

Thank you!

J!

Please have a quick look maybe there is a way to optimize my labels!

Thank you in advance!

J!

Back again!

I found that I had enabled the 'Match Full Path' option so I guess now that I remove it there are smaller Strings to apply the regex and is faster now.

Do you think if I brake my checks to non regex would perform better?
ex.
(.*)\.(html|htm|url|wri)$
to become
*.html
*.htm
*.url
*.wri
I will have more checks but the function might be faster...

Can you advise on this?

Thank you in advance!

J!

Only way to know for sure is to compare how long both methods take.

1 Like

I made it very fast without regex!!!!!

I haven't noticed before that your function supports '(' and '|' so I had everything build with regex enabled.

Almost all my requirements can be implemented without regex (just extensions).

My folder now is loading in less than 1 sec!

Mission accomplished!!!

Thank you all once more!

J!

PS the above (.*)\.(html|htm|url|wri)$ became *.(html|htm|url|wri)

2 Likes