[Interest] QRegularExpressionMatch memory consumption

Thiago Macieira thiago.macieira at intel.com
Sat Oct 12 18:41:28 CEST 2013


On sábado, 12 de outubro de 2013 12:28:01, Michael Videlgauz wrote:
> So it seems to me that QRegularExpressionMatch creates a copies of each
> line and does not release it. What am I missing here? Thanks!

Why do you think it doesn't release it? Your QRegularExpressionMatch object 
goes out of scope at the end of the block and, unlike QRegExp, executing a 
match in QRegularExpression does not modify it (except for compiling / 
optimising the the pattern).

An increase in addressable virtual memory is expected; an increase in total 
memory allocation is acceptable, but not a leak of memory.

So I have to ask: how did you measure?
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131012/4d6b63e9/attachment.sig>


More information about the Interest mailing list