Version: (using KDE KDE 3.1.94) Installed from: SuSE RPMs OS: Linux Hi, I am now was using umbrello in anger, during usage the file size was fluctuating around 100K... I then created a few more diagrams and placed existing classes on them and enabled Java code generation (changed from C++) and I noticed umbrello behaving a little sluggishly. I checked the file size and it had lept to 2.0MB. Seems a little odd. I was also experiencing bug72615. I am using Umbrello compiled from source (kdesdk-040113 ie 13/01/2004).
More info... It appears that ~90% of the size is in the codegeneration element. Inspection reveals that this has two sub elements (codegenerator) that represents the CPP and Java. the sub elements are extremely large.
I thought there was an entry for the option of turning off code generation but I can't find it just now. Once the active language has changed it should probably offer to delete all the code from the previous active language as that takes up a lot of disk space and memory.
Yes, the XMI representation of the code generation sucks. Its far too wordy than it need be. The implementation is "programmer efficient" rather than "application efficient". I can think of 2 possible things to help reduce the code generation verbiage: One possible solution here is to replace some of the XMI code generations elements which are repetative with ID/IDREF mechanism. An example of a repeated element would be "codeaccessor" which occurs both under the "codeclassfield" and "textblock" elements, but is fundementally no different. Another angle to cutting down the size here is to NOT print out unmodified codeblocks. At the very least, unmodifed codeblocks can be more concisely represented than they currently are.
So it is a wish to have an option to turn off code generation or to remove the generated code. I think the problem isn't that important anymore, because we now have compressed xmi file support.
*** This bug has been marked as a duplicate of 95924 ***