|Re: XMI saving is very slow... [message #664817 is a reply to message #664669]
||Tue, 12 April 2011 07:58
Registered: February 2011
Location: Toulouse, France
I identified the slowest step.|
In my MetaModel: each cell refers to a column and to a row, this is a bidirectional reference (each column or row refers to its own cells).
I have about 600.000 cells in my excel file. To import it (read the excel file with API Apache POI, and create object of my model), the algorithm takes about 6seconds. To save this model (resource.save(options); ) in XMI, it takes 16 minutes and 18 seconds. This method (resource.save) is a black box for me, it's a method provides by EMF.
Now if I create 600.000 cells without manage references to columns and rows (I have only bulk cells in my model), the import is unchanged, but the XMI saving takes only 4 seconds...
I have no ID on my objects. So I know that: if an object refers to another, at the moment of the XMI saving, the used ID is the number of the object (in the creation order). And it seems that this step is very very long...
Maybe, are there some options to reduce this cost time? Or another way to save my model?
The thing that I don't understand is: references are define during the model creation, is there another step to create references at the moment of the XMI saving?
Thank you for your answers !
[Updated on: Tue, 12 April 2011 10:08]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.03803 seconds