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

Manuel Amador (Rudd-O) rudd-o at
Sat Oct 6 20:43:14 CEST 2007

No, it won't slow down file play, because the DONTNEED hint only applies to 
the file descriptor owned by TagLib.  If some other process holds another 
file descriptor of the same file open, DONTNEED has no effect.

Read the posix_fadvise manpage for more info on the subject.

El Sáb 06 Oct 2007, Allan Sandfeld Jensen escribió:
> 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
> _______________________________________________
> taglib-devel mailing list
> taglib-devel at


	Manuel Amador (Rudd-O) <rudd-o at> -
	GPG key ID 0xC8D28B92 at

You will be winged by an anti-aircraft battery.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : 

More information about the taglib-devel mailing list