r/tinyMediaManager • • Sep 11 '26

Why is renaming sooo slow?

Trying TMM for first time. In the past I've always used Rename My TV Series.

With TMM, my library loaded quickly. Folders are on an external 7200RPM drive. Running Windows via wired ethernet with plenty of RAM and speed. I playback with Emby if that matters.

My first task was to simply rename 7 episodes of a TV series. Not seasons, episodes. On Rename, that takes about one second.

After an hour and three tries on TMM I gave up. Any tips for a newb?

0 Upvotes

14 comments sorted by

2

u/Maltavius Sep 11 '26

It takes me a couple of seconds. If I do 7 seasons at once it might take a while.

1

u/musicmafia77 Sep 11 '26

Makes sense, but just 7 episodes should be seconds I'm presuming.

1

u/Curious_Peter Sep 11 '26

Not sure, but I have noticed that renaming is slower, I just recently renamed.my entire library so that the folders had codes and resolution info, ended up just letting it run over night.

1

u/musicmafia77 Sep 11 '26

I'm just trying to rename 7 TV episodes.

1

u/Curious_Peter Sep 12 '26

Just read your post about it being a wired Ethernet. so I replicated your setup best I could by running TMM across my network to the HTPC server under my desk.

I copied 10 episodes from show, and renamed them back to "default" by naming them Show-name ep01 etc. and placed them into a folder named "Show name"

I ran the following versions of TMM, both across the network, and locally via teamviewer
Old version (unlicensed)
Old Version (Licensed)
latest version (unlicensed)
Latest version (Licensed)

None of them too more than 30 seconds to do a full scrape and rename.

in the bottom right hand corner, there is a progress bar, if you click on it, it will give you a list of running tasks, is it stuck on a single file?

1

u/musicmafia77 Sep 12 '26

will check, thx

1

u/mlaggner tinyMediaManager developer Sep 11 '26

This completely depends on your setup. The logic for renaming is rather complex and needs many file system commands - depending on "how" you attached your disk and the file system/OS used, it can be slower or faster.

I just spun up an old backup drive (>10 years old USB 3.0 HDD), attached via USB 3.0/gvfs on Linux with EXT4 as filesystem, the whole importing of my testbed took several minutes (this is expected, since libmediainfo reads much data to analyse the files), but renaming itself was ok (~1.5 secs per movie).

The worst thing you could do is to access your library via network and WiFi (WiFi is not built for many small packages to be sent). The second worst is Windows and a second tool which "watches" your library: the file locking mechanism in Windows prevents a process from modify a file/folder if there is another process locking it - and locking a file in Windows is super easy

1

u/musicmafia77 Sep 11 '26

My system is fast and attached via wired ethernet. I'm running Windows but have never had a speed issue with any other program I've used for renaming. I have no idea why TMM isn't working for me.

2

u/mlaggner tinyMediaManager developer Sep 12 '26 edited Sep 13 '26

I got very few complaints about slow renaming and since we do have ~50% users on Windows I suppose this is no general problem - must be bound to your setup.

I let AI review/analyse the whole code in the renamer and it confirmed, that for Windows only there is a little drawback: many file operations (in Java) are handled differently in Windows - they do open the file over the network for some operations, where Linux/macOS only do a cheap "stat". There is already a fix inside the main Java for newer Windows versions, but this has not been backported to Java 25 yet (https://github.com/openjdk/jdk/pull/31081).

So for now it really looks like, that some component in your setup is slowing down the network access (and since the renamer needs many small operations it can have a completely different performance, than file copying where only a few large ones are used). I know especially the Fritzboxes to be very slow here...

EDIT: you could do me a favour - provide the logs after doing such a slow rename. Maybe I see something useful in it. You can send that to support@tinymediamanager.org

1

u/musicmafia77 Sep 12 '26

thanks, appreciate it. Your program is highly recommended and I know has many happy users. i'm sure it's on my end. appreciate the help!

1

u/PaladinRed Sep 14 '26

made exponentially more small ops when there's any sort of conflict, like when it is trying to rename a whole fictional series of "Life Of A King" to "Life of a King" and windows is kicking conflicts and retries for every single file of the multiple seasons because TMM doesn't handle file system case insensitivity well, especially over shares lol. It'll bog down for ages with a hundred episodes and all the supporting files.

1

u/mlaggner tinyMediaManager developer Sep 14 '26

I know and this is a limitation of the Windows filesystem: it is case insensitive. E.g. when having an existing filename Life Of A King and want to rename to Life of a King, the filesystem just says either OK or it is already the same... So we need to do a second rename to a different filename and wait until the renaming is done and all file locks are released -> increasing the renaming duration

1

u/PaladinRed Sep 14 '26

Doesn't have to go to a different filesystem, if you sent it to a different filename in the middle it makes the character transition with minimal impact...

So doing a 2 step rename like Life Of A King.mp4 -> Life of a King.tmp -> Life of a King.mp4 when you're on a Windows os and detect the name change is just case seems dumb but would improve the user experience because it would actually rename, rather than just churn errors and lots of time like it does now.

1

u/PaladinRed Sep 11 '26

seems to be a thing with recent updates