On Tuesday 10 February 2015 16:33:23 Knoll Lars wrote:
> Not a whole lot? That Atomic COW is around 10% slower than a Plain string
> (does Atomic COW use a fast allocator?) in the use case where you copy
> strings once and modify them in 2/3 of the cases ;-)

I guess the slowdown from -fexceptions is less than 10% and that still sufficed 
to -fno-exceptions most modules. So 10% slowdown is really, really, bad.

And in Qt, we're cheating. We're not marking strings unsharable when we hand 
out references to characters, as we must, to be *implicitly* shared. We're 
only doing "semi-implicit-sharedness", because, let's face it, if we did real-
implicit, we'd be detaching all the time.

-- 
Marc Mutz <[email protected]> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to