Howdy guys. Sorry for the crosspost. Patch to speed up taglib.

Allan Sandfeld Jensen kde at carewolf.com
Sat Oct 6 14:30:38 CEST 2007


On Friday 05 October 2007 17:32, Manuel Amador (Rudd-O) wrote:
> Here's a patch.  Hope it's useful.
>
> I dunno how to make KMail not linewrap, so I'm attaching it and pasting it
> as well.
>
> This patch implements on posix systems the fadvise system call that makes
> the system not readahead mp3 while scanning for tags.  It's absurd to
> introduce readahead to a problem that entails reading two or three 64 K
> pages at most. Less I/O is good. right?
>
Depends. This might speed-up collection scanning, but it would also slow down 
normal one file scan and play, because you are evicting pages that is going 
to be reused by the decoder right after tag-reading. Maybe if you remove the 
last DONTNEED advise, it will be performance-wise safer. 

`Allan


More information about the taglib-devel mailing list