View Issue Details

IDProjectCategoryView StatusLast Update
0017183MMW 5Main Panel: Toolbars & Menuspublic2021-05-27 19:16
Reporterdrakinite Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version5.0 
Target Version5.0.1Fixed in Version5.0.1 
Summary0017183: Performance issue - Large popupmenus take up to a full second to open
DescriptionSome context menus take a long time to open, especially on slow systems. The worst ones come from right-clicking music in grid view or list view.
There doesn't appear to be a single culprit that causes lag; but there's a lot of looping code that causes quite a bit of delay on large menus with a lot of items.
Additional Informationhttps://www.mediamonkey.com/forum/viewtopic.php?f=30&t=99126
TagsNo tags attached.
Fixed in build2408

Relationships

related to 0014673 closedpetr Incorrect initial popup window size 

Activities

drakinite

2021-05-02 01:08

developer   ~0063025

I'm not quite sure how I was able to test the context menu timing back when I reported this. Now, on build 2401, I'm finding that the *contextmenu event itself* has an enormous delay on large tracklists. I have no idea what causes it.

drakinite

2021-05-26 06:06

developer   ~0063487

Last edited: 2021-05-26 06:07

Note: In the album grid view, clicking the ⋮ on a track causes the full menu to open almost instantly, further hinting that the original suggestion (lots of looping code when opening the tracklist menu) is not correct. The large menu creation itself is not slow, but something causes the right-click event to fire much slower in tracklists. (Additional note: It's also not due to sheer size of tracklists or lots of divs. I can recreate the delay on a collection that contains only three songs, even after completely restarting the interface.)

Edit: Right-clicking in the empty space at the bottom of a tracklist results in the menu showing up immediately. The delay only occurs when clicking a tracklist ITEM.

Ludek

2021-05-26 14:57

developer   ~0063494

Last edited: 2021-05-26 15:13

I agree that this needs to be debugged _asap_ (to find what is causing the lag)

EDIT: The reason is usage
disabled: notLocalMediaListSelected
in many actions.

For every action the 'notLocalMediaListSelected' is called again and it is causing the lag.
Solution should be to cache the result of notLocalMediaListSelected function

Ludek

2021-05-26 15:59

developer   ~0063495

Last edited: 2021-05-26 16:17

Further debugging shown that the lag was introduced while fixing 0014673 (SVN revision 30796) in popupmenu.js

Ludek

2021-05-26 16:13

developer   ~0063496

Fixed in 2408

drakinite

2021-05-26 22:50

developer   ~0063518

Verified 2408. The performance improvement is VERY nice; feels much nicer to use MM now without that menu delay. :)

lowlander

2021-05-27 19:16

developer   ~0063553

Verified on 2408