[maemo-developers] What's wrong with folder browsing?
From: Tapani Pälli tapani.palli at nokia.comDate: Tue May 22 11:21:57 EEST 2007
- Previous message: What's wrong with folder browsing?
- Next message: What's wrong with folder browsing?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ext Eero Tamminen wrote: > Hi, > > ext Gustavo Sverzut Barbieri wrote: > >>> I use two 4gig SD cards. Once i stuffed them full of media canola-conf >>> would just take over my cpu ( i am taking a stab in the dark, that >>> this was the indexer) . I waited for quite a while, and even had to >>> charge my n800 again, and i still couldn't use it, as everything would >>> stop responding. >>> >>> I just uninstalled it as i got sick of doing 'killall -9 canola-conf' >>> via xterm everytime my device slowed right down. >>> >>> If there is anything i can do to help debug this, then let me know and >>> i will try again, but I am also using a modified kernel to support >>> SDHC cards, so I don't know if my debugging counts :) >>> >> Just hack scripts (both init.d and dbus/service) and launch it with >> lower priority, it should be the default in next release. >> >> It basically works like this: >> - 1st time: readdir() + regexp (defined in gconf) + open() + parse >> (id3lib, shipped with device) + db insert >> > > I have strong suspicion that the culprit is libid3. When stracing on > the device what happens when MMC is scanned, the files are read 8KB > at the time, then the file offset is moved one byte and again 8KB are > read etc. > > I think it would be nicer for such scanners to take just the filepath and do the libid3 parsing later on, user won't see those information anyway before the UI is shown. This kind of 'lazy setup' would ease the amount of work needed for scanner. UI should then take care not to block too much on libid3 operations but try to do it in another thread while viewing playlist. > If you can test Canola on x86, you could try ltracing what happens > (ltrace provides more info as it traces also exported library functions, > but it doesn't work on ARM). > > > - Eero > _______________________________________________ > maemo-developers mailing list > maemo-developers at maemo.org > https://maemo.org/mailman/listinfo/maemo-developers > > // Tapani
- Previous message: What's wrong with folder browsing?
- Next message: What's wrong with folder browsing?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]