On 07/15/2010 04:43 PM, Hans-Peter Diettrich wrote:
Just an idea: When the lists contain many entries, they could be split
into buckets. Then the currently searched bucket(s) could be locked
against use by other threads, which can skip them and inspect the next
bucket.
I suppose their idea is that concurrent requests are so seldom that it
is not helpful to implement anything better than just using medium size
chunks. _Detecting_ the conflict is another issue, as potentially
necessary atomic instruction might slow down the program a lot.
-Michael
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel