[fpc-devel] Suggestion: reference counted objects
mschnell at lumino.de
Fri Sep 26 09:42:45 CEST 2014
On 09/25/2014 07:30 PM, Boian Mitov wrote:
>>> Strongly disagree...
>> You can't deny it. Please read some technical docs about the cost of
>> interlocked operation in multicore systems.
> As compare to the cost of other locking methods such as critical
> sections that have to be implemented instead if the ARC is missing?
I don't see the point.
If ARC is missing you need to call "free". No Critical section is
involved with that.
>>> Doing parallel processing without ARC is practically suicidal IMHO.
>> That might well be, but it does not deny the cost.
> There is always cost for parallelization (Actually same when doing it
> with humans - I know that as a CEO :-D )
Yep. But with ARC you force synchronization in occasions where it would
not be necessary without ref counting.
More information about the fpc-devel