[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 291248] kdevelop crashes when parsing big qrc files
From:       Milian Wolff <mail () milianw ! de>
Date:       2012-03-01 1:39:05
Message-ID: E1S2uz3-00010n-MR () bugs ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=291248





--- Comment #10 from Milian Wolff <mail milianw de>  2012-03-01 01:39:05 ---
Created an attachment (id=69199)
 --> (http://bugs.kde.org/attachment.cgi?id=69199)
massif file of duchainify run on the supplied test file

parsing your files shows that the clear culprit is the AST design...

your file has roughly 10mio initializer clauses, see e.g.
http://www.nongnu.org/hcb/#dcl.init

Our InitializerClauseAST has a sizeof(32) on 64 bit machines (8-byte aligned,
two pointers, four integers) and every number is in turn a PrimaryExpressionAST
with sizeof(64). So we end up at ~10mio * 96bytes = 960 MB. Massif (attached)
says it's even more at ~1.1GB...

so yeah we need to figure out how to optimize the memory consumption of our ast
:-/

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic