new D2.0 + C++ language

Weed resume755 at mail.ru
Thu Mar 19 04:26:21 PDT 2009


Christopher Wright пишет:


>>>>> And regarding performance, eventually it will come a lot from a good
>>>>> usage of multiprocessing,
>>>> The proposal will be able support multiprocessing - for it provided a
>>>> references counting in the debug version of binaries. If you know the
>>>> best way for language *without GC* guaranteeing the existence of an
>>>> object without overhead - I have to listen!
>>> You cannot alter the reference count of an immutable variable.
>>
>> Why?
> 
> Because it's immutable!
> 
> Unless you're storing a dictionary of objects to reference counts
> somewhere, that is. Which would be hideously slow and a pain to use. Not
> that reference counting is fun.


Precisely. I wrote the cost for that: 1 dereferencing + inc/dec of counter.

Ok, you can make reference counting is disabled by option. In any case,
to release code that does not been included, it is only for -debug!



More information about the Digitalmars-d mailing list