daap collection speedup fix

dunsens at web.de dunsens at web.de
Fri Aug 28 23:32:50 UTC 2009


hi,

i've written a patch for the DaapCollection which massively speeds up 
collection parsing. the problem was heavy using of QMap and QList when loading 
the song list in parseSongList(), therefore i have rewritten the parsing for 
this specific task to fill in the information directly into the several 
collection maps directly. this also shrinks heap usage for the daap collection 
froughly by the half for me. still it uses MemoryCollection which stores 
everything in ram.
now loading of a 67000 songs db takes roughly one minute, while before it took 
over 27 min with full cpu usage on one core. this fixes bug 173048, which has 
been accidentially closed.

cheers,
duns

btw. do kde svn accounts also work on amarok git?

My blog: http://whilos.blogsite.org

No brain - no headache!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: daap-patch.diff
Type: text/x-patch
Size: 21470 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/amarok/attachments/20090829/31dc1d3e/attachment.diff>


More information about the Amarok mailing list