[fpc-devel] Suggestion: reference counted objects
Boian Mitov
mitov at mitov.com
Mon Sep 22 20:34:34 CEST 2014
Strongly disagree...
For multithreading and parallel processing ARC is lifesaver. I have been
using it trough interfaces for 10 years already, and once I rewrote the old
code to use ARC it was a huge performance boost, and it keeps getting
better.
Doing parallel processing without ARC is practically suicidal IMHO.
I have also done a large number of sessions covering only some of the
aspects of this in a number of conferences, but even those bits and pieces
will give you idea of what ARC can do for parallel processing.
With best regards,
Boian Mitov
-------------------------------------------------------
Mitov Software
www.mitov.com
-------------------------------------------------------
-----Original Message-----
From: Michael Schnell
Sent: Monday, September 22, 2014 2:21 AM
To: fpc-devel at lists.freepascal.org
Subject: Re: [fpc-devel] Suggestion: reference counted objects
On 09/22/2014 11:13 AM, Sven Barth wrote:
But one point speaking against ARC is performance possible degradation,
This of course is critical when trying to improve performance by using
multiple cores in parallel. As the ref counting needs atomic operation,
this is especially critical, because same are even more expensive when
the variables are accessed by multiple cores (and hence reside in
multiple caches).
OTOH ARC might be "interesting" (but supposedly not really advantageous)
with parallel processing for creating thread-local objects in certain
cases.
Adding even more confusion to developing multithreaded projects :-( .
More information about the fpc-devel
mailing list