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

Manuel Amador (Rudd-O) rudd-o at rudd-o.com
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 kde.org
> https://mail.kde.org/mailman/listinfo/taglib-devel



-- 

	Manuel Amador (Rudd-O) <rudd-o at rudd-o.com>
	Rudd-O.com - http://rudd-o.com/
	GPG key ID 0xC8D28B92 at http://wwwkeys.pgp.net/

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 : http://mail.kde.org/pipermail/taglib-devel/attachments/20071006/8fee1608/attachment.pgp 


More information about the taglib-devel mailing list