Op 22/04/2016 om 18:47 schreef Ben Lau:
As long as the passed data is an implicit sharing class like
QByteArray, then it will be fine. Because only a pointer to the
contained data is passed. Data copying only happen when a function
write to an implicit sharing class.
That might not be as cheap as you think it is. The refcounting is done
in a thread-save way, and that costs time. For not smallish contents, it
may be quite a bit cheaper to just copy the data itself.
André
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest