This could be a small performance win, but opAddRef/opRelease would need the count as argument or maybe as template parameter.
Re: DIP74: Reference Counted Class Objects
Matthias Bentrup via Digitalmars-d Fri, 27 Feb 2015 13:01:01 -0800
When a function makes/destroys multiple references to an object
it should always be safe to coalesce all AddRefs into the first
AddRef and all Releases to into the last Release call.
- Re: DIP74:... Andrei Alexandrescu via Digitalmars-d
- Re: DIP74:... ketmar via Digitalmars-d
- Re: DIP74:... deadalnix via Digitalmars-d
- Re: DIP74:... Paolo Invernizzi via Digitalmars-d
- Re: DIP74:... Daniel Murphy via Digitalmars-d
- Re: DIP74:... Paolo Invernizzi via Digitalmars-d
- Re: DIP74:... Daniel Murphy via Digitalmars-d
- Re: DIP74:... Paolo Invernizzi via Digitalmars-d
- Re: DIP74:... Jacob Carlborg via Digitalmars-d
- Re: DIP74:... Jacob Carlborg via Digitalmars-d
- Re: DIP74:... Matthias Bentrup via Digitalmars-d
- Re: DIP74:... Jacob Carlborg via Digitalmars-d
- Re: DIP74: Reference Counted Class O... weaselcat via Digitalmars-d
- Re: DIP74: Reference Counted Cl... Andrei Alexandrescu via Digitalmars-d
- Re: DIP74: Reference Counte... Kagamin via Digitalmars-d
- Re: DIP74: Reference Co... Andrei Alexandrescu via Digitalmars-d
- Re: DIP74: Reference Counted Class O... Brian Schott via Digitalmars-d
- Re: DIP74: Reference Counted Cl... Andrei Alexandrescu via Digitalmars-d
- Re: DIP74: Reference Counte... Brian Schott via Digitalmars-d
- Re: DIP74: Reference Counted Class O... Johannes Pfau via Digitalmars-d
- Re: DIP74: Reference Counted Cl... Andrei Alexandrescu via Digitalmars-d