iterators+multithreading on win32

Stephen F. Booth me at sbooth.org
Sun Mar 6 00:11:56 CET 2011


I'm not familiar with atomic operations on Windows or Linux, but I've
attached my first stab at a patch that makes RefCounter use atomic increment
and decrement operations on OS X.

I doubt this will take care of everything, but it should be a start.

Stephen

On Sat, Mar 5, 2011 at 2:36 PM, Michael Pyne <mpyne at purinchu.net> wrote:

> On Saturday, March 05, 2011 13:21:21 James O. wrote:
> > Correct me if I'm wrong, but since hard drives can't read from two places
> at
> > once are speed increases actually realized from trying to multithread
> reads
> > with TagLib?
>
> Well, hard disks might surprise you (there are multiple physical platters
> typically, there's no theoretical reason it couldn't support streaming
> multiple files over a bus with a large enough transfer rate).
>
> In addition it is very easy for the OS and hard disk both to perform read-
> ahead and essentially read and return 3 files at a time (if they're laid
> out
> on the disk properly).
>
> It's the kind of thing you'd actually want to profile if at all possible
> before assuming that there would be no change.
>
> Regards,
>  - Michael Pyne
> _______________________________________________
> taglib-devel mailing list
> taglib-devel at kde.org
> https://mail.kde.org/mailman/listinfo/taglib-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/taglib-devel/attachments/20110305/2b004fda/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: atomics_osx.diff
Type: application/octet-stream
Size: 888 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/taglib-devel/attachments/20110305/2b004fda/attachment.dll 


More information about the taglib-devel mailing list