Bug 459413

Summary: Extraction of certain types of archives (tar.zst, tar.Z, tar.lzma, tar.lz, tar.bz2) via context menu of Dolphin is slower than extraction directly with Ark
Product: [Applications] ark Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Elvis Angelaccio <elvis.angelaccio>
Status: RESOLVED NOT A BUG    
Severity: normal CC: aacid, adriano.ceni.no1, rthomsen6
Priority: NOR    
Version: 22.08.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Patrick Silva 2022-09-19 21:15:17 UTC
SUMMARY
I noticed that sometimes extracting an archive via context menu of Dolphin takes a long time.
Then I tried extract the same archives directly with Ark and surprisingly I noticed that the extraction of certain types of archives is much faster, sometimes taking about half the time. I did many tests extracting several types of archives containing a 1 GiB video file, and here are the biggest differences:

Extraction via context menu of Dolphin:
tar.zst 48s
tar.Z 1m20s
tar.lzma 3m17s
tar.lz 3m52s
tar.bz2 5m18s

Extraction directly with Ark:
tar.zst 26s
tar.Z 45s
tar.lzma 1m56s
tar.lz 1m55s
tar.bz2 3m04s


STEPS TO REPRODUCE
1. extract any of the following archives types via context menu of Dolphin and then directly with Ark and pay attention to the time each extraction took: tar.zst, tar.Z, tar.lzma, tar.lz, tar.bz2
2. 
3. 

OBSERVED RESULT
inconsistent performances depending on the way used to extract the archive

EXPECTED RESULT
same performance regardless the way used to extract the archive

SOFTWARE/OS VERSIONS
SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.25.90
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Graphics Platform: Wayland
Comment 1 Elvis Angelaccio 2022-09-25 20:21:54 UTC
That's because before extracting an archive, ark needs to "load" it. That's why if you first open it in ark and then extract it, it's going to be faster.

Not much we can do here, it's a design choice in ark.
Comment 2 Elvis Angelaccio 2022-09-25 20:26:44 UTC
*** Bug 458523 has been marked as a duplicate of this bug. ***
Comment 3 Patrick Silva 2022-09-25 20:49:21 UTC
Thanks for clarifying, Elvis.