Super linear memory growth with Ecore [message #641705] |
Fri, 26 November 2010 22:38 |
Miles Parker Messages: 1341 Registered: July 2009 |
Senior Member |
|
|
Hi,
I haven't had a chance to do object profiling yet, but I have a case where my file sizes are growing quite rapidly relative to size, i.e. > O(n). It may just be a hockey stick shape, but in that case the change in steepness is large.
I would think that the growth should generally be linear, and looking at http://www.slideshare.net/kenn.hussey/performance-and-extens ibility-with-emf and other resources seems to support that. I'm using BinaryResourceImpl and MinimalEObject both of which made a big difference but obviously if I'm in O(n^k) nothin's gonna help for very long.
What I'm thinking is that there must be something in my model design itself that is leading to this. Obviously if I had some sort of pair-wise relations between all objects then that could grow at O(n^2) but my relations are pretty well contained, i.e. if these were CSV tables they should be linear and the XML files looked linear. Are there any gotchas with respect to setting up the model itself?
Is it possible that Edit is contributing anything to memory usage here, say in notification? I don't have an editor open, I'm programmatically writing to the resource.
thanks,
Miles
|
|
|
|
Powered by
FUDForum. Page generated in 0.03111 seconds