Re: pseudo-specs for a String class

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Wed, 27 Aug 2008 01:15:31 +0200

On tis, 2008-08-26 at 16:24 -0600, Alex Rousskov wrote:
> ... but it should be passed by reference whenever possible to avoid the
> hidden overheads of refcounting. Every time we pass or return a String
> by value, we create and later destroy at least one copy of a String,
> which implies "locking" and "unlocking" the underlying buffer.

True, but only after a careful evaluation indicating that hard
references is safe in the context.

Regards
Henrik

Received on Tue Aug 26 2008 - 23:15:39 MDT

This archive was generated by hypermail 2.2.0 : Wed Aug 27 2008 - 12:00:06 MDT