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.<div><br></div><div>I doubt this will take care of everything, but it should be a start.</div>
<div><br></div><div>Stephen<br><br><div class="gmail_quote">On Sat, Mar 5, 2011 at 2:36 PM, Michael Pyne <span dir="ltr"><<a href="mailto:mpyne@purinchu.net">mpyne@purinchu.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Saturday, March 05, 2011 13:21:21 James O. wrote:<br>
> Correct me if I'm wrong, but since hard drives can't read from two places at<br>
> once are speed increases actually realized from trying to multithread reads<br>
> with TagLib?<br>
<br>
</div>Well, hard disks might surprise you (there are multiple physical platters<br>
typically, there's no theoretical reason it couldn't support streaming<br>
multiple files over a bus with a large enough transfer rate).<br>
<br>
In addition it is very easy for the OS and hard disk both to perform read-<br>
ahead and essentially read and return 3 files at a time (if they're laid out<br>
on the disk properly).<br>
<br>
It's the kind of thing you'd actually want to profile if at all possible<br>
before assuming that there would be no change.<br>
<br>
Regards,<br>
<font color="#888888"> - Michael Pyne</font><br>_______________________________________________<br>
taglib-devel mailing list<br>
<a href="mailto:taglib-devel@kde.org">taglib-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/taglib-devel" target="_blank">https://mail.kde.org/mailman/listinfo/taglib-devel</a><br>
<br></blockquote></div><br></div>