Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
AW: [cdt-dev] RE: Adding MakeTargets takes a long time andconsumes a huge amount of heap

>I would have guessed the problem was due to the Project Model. 
> Basically every time you add a make target, the project 
>description is being modified and saved.  As the 
>projectdescription is stored as an XML file, creating a 
>writeable description causes the entire document to be 
>duplicated.  Old versions can hang around as thread local 
>variables, during creation of project model deltas, as well as 
>by being held by different threads and static variables (e.g. 
>AbstractPage.java) .
>
>Until this is fixed, a potential solution might be to modify 
>MakeTargetManager locally.  You could change the semantics of 
>addTarget so that MakeTargetManager holds the set of make 
>targets you're adding locally until you explicitly call 
>MakeTargetManager.save() which would have the same effect as 
>MakeTargetManager.writeTargets.  (you'd also need to modify 
>all the places where CDT calls addTarget to also call your new 
>save method.)

This sounds reasonable. I supposed that it would be more work like I
intended to spend :-) 
Anyway, thanks for your quick and valuable response. I will investigate
how much additional effort this will be.

Regards,
Thomas 
 
*******************************************
Harman Becker Automotive Systems GmbH
Geschaeftsfuehrung:  Dr. Wolfgang Ptacek  -  Michael Mauser  -  Regis Baudot
Sitz der Gesellschaft: Karlsbad - Registergericht: Mannheim HRB 361395
 
*******************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und loeschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the contents in this e-mail is strictly forbidden.
*******************************************


Back to the top