On Sat, 01 Aug 2009 20:26:34 +0200, 
Hans Vercammen <hve...@gmail.com> wrote:

> Strings in vala are immutable value objects. If you are in need of a
> mutable (cow) reference counted string implementation, that would
> certainly be possible, although I doubt that the end result would
> perform better than current situation. It's not like in C++ for
> example, where you could optimize by inlining certain critical parts.

Even immutable value objects can sometimes do with reference
counting...  Otherwise they're limited to exactly one owner; any time
there's even the slightest possibility that the string might vary
from the source or cease to exist outside of the objects control, it
needs to create a copy for its own use, or jump through hoops likely
to end up being more expensive than the original copy would have been.

-- 
Fredderic

Debian/unstable (LC#384816) on i686 2.6.29-2-686 2009 (up 7 days,  4:15)

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to