Bug 480790

Summary: Context menu takes some seconds to open when thousands of files are selected
Product: [Applications] dolphin Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: felixernst, kfm-devel
Priority: NOR Keywords: qt6
Version First Reported In: 24.12.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Patrick Silva 2024-02-03 17:48:27 UTC
STEPS TO REPRODUCE
1. open a folder containing many files - I used a folder containing 2036 .jpg files in my test
2. select all files by pressing ctrl+a
3. right-click on any selected file

OBSERVED RESULT
the context menu takes a few seconds to open - 3 seconds on my system

EXPECTED RESULT
the context menu opens immediately

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.93.0
KDE Frameworks Version: 5.249.0
Qt Version: 6.7.0
Graphics Platform: Wayland
Comment 1 Felix Ernst 2024-02-12 13:16:22 UTC
Is this a regression or has this always been like this for you? I wonder if this is related to https://phabricator.kde.org/T15916 .
Comment 2 Patrick Silva 2024-02-13 19:49:22 UTC
Tested Dolphin 23.08.4 on a live usb of neon stable edition, the context menu takes 1 second to open.
On Arch Linux running Dolphin 24.01.95-1 the delay is 3 seconds. Tested with the same files on both systems.
Comment 3 Felix Ernst 2024-02-14 11:06:33 UTC
Interesting. I am not aware of any relevant changes happening to Dolphin code or context menu triggering since 23.08, so this might be a Qt6 or KF6 regression. It probably needs profiling either way though to pinpoint what is taking so long.