[Qt-interest] QQueue / QList memory allocation behaviour
Schimkowitsch Robert
Robert.Schimkowitsch at andritz.com
Mon May 16 08:13:09 CEST 2011
I have a QQueue<MyClass*>, or a QList<MyClass*> where I mainly append at
the end, and remove in front.
Let's assume I start out with the maximum size of Queue or List, and
then let it shrink and grow as needed, but never beyond the original
size.
Will it perform new and delete operations continuously, once in a while,
or will it only re-use already allocated memory?
The question behind this: Will I create memory fragmentation when using
QQueue / QList in this fashion in multiple threads?
Robert
#####################################################################################
This message and any attachments are solely for the use of the intended recipients. They may contain privileged and/or confidential information or other information protected from disclosure. If you are not an intended recipient, you are hereby notified that you received this email in error and that any review, dissemination, distribution or copying of this email and any attachment is strictly prohibited. If you have received this email in error, please contact the sender and delete the message and any attachment from your system.
Thank You.
ANDRITZ HYDRO GmbH
Rechtsform/ Legal form: Gesellschaft mit beschrankter Haftung / Corporation
Firmensitz/ Registered seat: Wien
Firmenbuchgericht/ Court of registry: Handelsgericht Wien
Firmenbuchnummer/ Company registration: FN 61833 g
DVR: 0605077
UID-Nr.: ATU14756806
#####################################################################################
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110516/49c65275/attachment.html
More information about the Qt-interest-old
mailing list