Summary: | Thumbnailing should be multi threaded on SSDs and other fast devices | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | simonpatp |
Component: | view-engine: icons mode | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | CONFIRMED --- | ||
Severity: | wishlist | CC: | dashonwwIII, fanzhuyifan, kfm-devel, meven29, nate |
Priority: | NOR | ||
Version: | 21.12.3 | ||
Target Milestone: | --- | ||
Platform: | Debian stable | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=445176 | ||
Latest Commit: | Version Fixed In: |
Description
simonpatp
2024-02-21 23:17:34 UTC
I wonder if the bottleneck here is CPU cycles or reading from disk. It isn't quite comparable, but for reference: $ time (sha1sum *.pdf) real 0m0.430s $ time (find . -name '*.pdf' -type f -print0 | parallel -0 --line-buffer -j48 convert -thumbnail x64 -background white -alpha remove '{}[0]' '{}.png') real 0m2.653s $ time (for file in *.pdf; do convert -thumbnail x64 -background white -alpha remove "${file}[0]" "${file%.pdf}.png"; done) real 1m5.721s $ ls *.pdf | wc -l 470 In comparision, here are some numbers from 484 5-8MiB JPEGs from an HDD: cat: 5.8s cat (cached): 1.6s convert (parallel): 6.6s convert (single): 38.2s (In reply to fanzhuyifan from comment #1) > I wonder if the bottleneck here is CPU cycles or reading from disk. Neither, this isn't parallelized at all currently in dolphin code. FYI, we had a contributor that tried to tackle this, I couldn't find the branch it might be old. |