View Issue Details

IDProjectCategoryView StatusLast Update
0009284MMW v4Synchronizationpublic2012-06-04 23:31
Reporterrusty Assigned To 
PriorityurgentSeveritymajorReproducibilitysometimes
Status closedResolutionfixed 
Product Version4.0.5 
Target Version4.1Fixed in Version4.0.5 
Summary0009284: MTP performance can be very slow in some cases
DescriptionThere are numerous reports that MTP synchronization is unusably slow--especially for certain android devices.

I have not been able to replicate this, but it seems to be specific to certain android devices in mtp mode.
Additional Informationhttp://www.mediamonkey.com/forum/viewtopic.php?f=6&t=64066&start=15
TagsNo tags attached.
Fixed in build1493

Relationships

related to 0006491 closedLudek MTP Devices should use root folder for in-place configuration 
related to 0002615 closedLudek MTP Synchronization is MUCH slower than it should be 
related to 0007580 closedLudek MTP Synchronization takes ~5-10s to initiate (regression) 
related to 0002009 resolved MTP Device Export: performance is very slow 
related to 0009368 closedLudek Improved UI for bi-di sync 

Activities

jiri

2012-05-08 09:06

administrator   ~0031049

Per e-mail discussion, for 4.0.5 we can modify the scanning to be a little more 'smart'. Particularly for Android devices (recognized by root Android folder, or directly by device profiles in WMDM) we should avoid scanning Android, DCIM, Backups and possibly some other folders that are used by some popular applications and can contain a lot of files/sub-folders.

Ludek

2012-05-08 12:33

developer   ~0031050

I was also thinking about one addition to the "smart scan":
If MM is traversing folder that has say 2000 images (like DCIM) then MM could be smart enough and if it hasn't recognize a known file (audio or video) between first 20 files then it could simply skip the folder.
This way we could speed things a lot.

Ludek

2012-05-11 15:04

developer   ~0031102

Last edited: 2012-05-11 18:10

Added ignoring of several common android folders in build 1490.


'Android', 'zemail', '.android_secure', 'Aura', 'DCIM', 'LOST.DIR', 'Pictures', 'soundhound'

Waiting for logs to add others...

Ludek

2012-05-11 20:31

developer   ~0031105

Last edited: 2012-05-11 20:32

Note that DCIM shouldn't be excluded, because it can contains MP4 videos that wouldn't be visible by MM then.

Ludek

2012-05-14 00:10

developer   ~0031116

Fixed in build 1490.

Ludek

2012-05-15 21:34

developer   ~0031143

Added some other ignore folders (based on logs) like 'Wallpapers' into the build 1491.

Ludek

2012-05-16 18:07

developer   ~0031154

Last edited: 2012-05-16 20:29

Watching the logs it makes me think that we should probably really limit MTP scanning to only sync targets even for 4.0.5, because in one log it takes __several__minutes__ to scan folder '.mobilenoter', it is by evidence a folder created by an app called MobileNoter, but we can hardly include all such a apps to the ignored folders set.

So I would suggest to limit the scanning to sync targets only at least for all android devices connected in MTP mode, what do you think?

rusty

2012-05-16 19:45

administrator   ~0031156

It makes sense, so long as we provide a mechanism for adding other folders to the scan list.

We can re-use the 'Select folders you want to scan for media files' string if needed...

Ludek

2012-05-17 12:04

developer   ~0031160

Just to summarize: The reasons to prefer scanning of whole device were that 0006491 shows device content based on the device scan.
If we would scan only sync targets then the amount of Video/Audio/Other at the bottom graphical indicator would be inaccurate, only the songs in the sync targets would be shown under the Device->Music node, etc.
If the user would change the sync targets then the content presented in the old targets would not be shown at all and this would be definetly an issue. There would be also issues with the background sync then. So limiting device scanning only to currently configured sync targets is buggy. On the other hand as it is definetly horribly slow for some users we should give them an option to scan only sync targets. This will be definetly fixed for 4.1 (as already discussed) to be in beta testing soon.

We cannot change this for 4.0.5 because of two reasons:
1) We won't have enough time to properly assess the downside (i.e. we don't know and won't know by then how many MTP users rely on scanning directories that aren't configured as target folders).
2) Strings translation is frozen, we cannot easily add new UI for this and it also doesn't make much sense as 4.1 will be in beta testing soon.

Ludek

2012-05-17 12:36

developer   ~0031161

Added several others folders to ignore in build 4.0.5.1492 (based on logs).

Ludek

2012-05-23 13:44

developer   ~0031185

Significantly sped up metadata scanning for tracks synced by MM
in build 1493.

peke

2012-06-04 23:31

developer   ~0031286

Verified 1495