Re:Efficient string copying and concatenation in C
by saagarjha on Thursday September 12, 2019 @01:42PM
(#20954197)
How would you use the refcount?
[ Parent
| on HN ]
Re:Efficient string copying and concatenation in C
by billziss on Thursday September 12, 2019 @01:53PM
(#20954311)
I use the refcount to avoid copying the string when passing it around. I just refcount it instead.
To clarify this is part of a larger library that includes other memory management machinery, such as autorelease pools, etc.