Extremely slow matching performance after Filebot and Java upgrade
Posted: 22 Mar 2020, 00:35
Today I updated filebot to 4.9.0 on the Synology 918+. I had to remove Java 8, and then install Java through the recommended installer (now version 14).
I primarily use filebot with the fn:amc script:
Now to process new files it is taking a really long time. I used to be able to delete the amc.txt file and reprocess all downloads relatively quickly (say 30 minutes). Now it takes 1.5 minutes just to check a single file
What I suspect is happening is that the 2 files are being compared with a hash or something, to ensure they are exactly the same. In my case, I only care the file name is the same (and thus it can be skipped). Can we speed up this comparison?
System information
I primarily use filebot with the fn:amc script:
Code: Select all
filebot -script fn:amc \
--log fine \
--output "/volume1/TV" \
--conflict skip \
--action copy \
-non-strict "/volume1/Downloads/Synology" \
--log-file amc.log \
--def excludeList=amc.txt music=n \
seriesFormat="/volume1/{vf == /2160p/ ? 'TV4K' : 'TV'}/{n}/{s00e00} - {t}" \
movieFormat="/volume1/{vf == /2160p/ ? 'Movies4K' : 'Movies'}/{n} [{y}] {vf} {af}" \
subtitles="en"
Code: Select all
wiifm@tank:~$ time ./downloadsToTv.sh
Run script [fn:amc] at [Sun Mar 22 13:29:27 NZDT 2020]
Use excludes: /volume1/TV/amc.txt (1192)
Input: /volume1/Downloads/Synology/Star.Trek.Picard.S01E09.iNTERNAL.1080p.WEB.x264-BAMBOOZLE/star.trek.picard.s01e09.internal.1080p.web.x264-bamboozle.mkv
CmdlineException: OpenSubtitles: Please enter your login details by calling `filebot -script fn:configure`
Rename episodes using [TheTVDB] with [Airdate Order]
Auto-detected query: [Star Trek Picard]
Fetching episode data for [Star Trek: Picard]
Fetching episode data for [Star Trek]
Fetching episode data for [Star Trek: Voyager]
Fetching episode data for [Star Trek: Enterprise]
Fetching episode data for [Star Trek: Deep Space Nine]
Stripping invalid characters from new path: /volume1/TV/Star Trek: Picard/S01E09 - Et in Arcadia Ego (1)
Processed 0 files
CmdlineException: Failed to process [/volume1/Downloads/Synology/Star.Trek.Picard.S01E09.iNTERNAL.1080p.WEB.x264-BAMBOOZLE/star.trek.picard.s01e09.internal.1080p.web.x264-bamboozle.mkv] because [/volume1/TV/Star Trek Picard/S01E09 - Et in Arcadia Ego (1).mkv] is an exact copy and already exists [Last-Modified: Sat Mar 21 20:27:13 NZDT 2020]
Finished without processing any files
real 0m59.788s
user 1m31.224s
sys 0m5.929s
System information
Code: Select all
wiifm@tank:~$ filebot -script fn:sysinfo
FileBot 4.9.0 (r7234)
JNA Native: 6.1.0
MediaInfo: 19.09
7-Zip-JBinding: 9.20
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2020-03-16 (r625)
Groovy: 3.0.2
JRE: OpenJDK Runtime Environment 14
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 4.2 GB Max Memory / 50 MB Used Memory
OS: Linux (amd64)
HW: Linux tank 4.4.59+ #24922 SMP PREEMPT Mon Aug 19 12:13:37 CST 2019 x86_64 GNU/Linux synology_apollolake_918+
STORAGE: ext4 [/] @ 1.3 GB | btrfs [/volume1] @ 16 TB | btrfs [/volume1/@docker] @ 16 TB | btrfs [/volume1/@docker/btrfs] @ 16 TB
DATA: /volume1/@appstore/filebot/data/wiifm
Package: SPK
License: FileBot License P10597872 (Valid-Until: 2020-12-11)
Done ヾ(@⌒ー⌒@)ノ