I wonder whether I'm expecting too much...?
I've got EA version 11 running directly on a reasonable spec PC (3.2GHz i5 12Gb RAM running Windows 7/64).
I have written an Add In that parses an xml source file in order to generate a number of packages, objects and diagrams.
The xml file is approx 5Mb, and contains roughly500 nodes, which I have to burst in order to generate the commensurate number of packages and diagrams.
Each object also gets populated with a number of tagged values derived from the parsed file.
There are no connections (yet).
The completed .eap file is a little under 4Mb in size, because I waste much of the source data.
My Add In is, I think, fairly efficient in its structure – it's written in vb using Visual Studio 2010 and compiles to dll without any apparent problems.
The sticking point is that the process takes about 10 minutes to run!
It doesn't seem linear though: The process kicks off, processes the first 20 nodes, updates the Project Browser, and then apparently stalls for literally minutes with the EA window showing 'Not Responding'. Eventually it recovers, then does a variable amount (between 20 and 50) and then apparently stalls again. This repeats until the whole xml has been parsed, and the correct desired outcome is reached
The stalling always occurs at the same xml nodes, and although these don't seem to differ from any other nodes, it suggests to me a programmatic shortcoming in the seat/keyboard interface.
So: Are there any obvious stupid mistakes which I, as a beginner, might have made that could result in such an appallingly slow process?
I wondered about the use of update or refresh and whether the underlying database could be getting out of sync with the Add In, and eventually recovering, but that seems a bit unlikely.
I used EA's built-in vbscript to develop some of the modules and frankly that didn't seem much faster, so I'm bewildered.
I wondered whether I was using/abusing objects badly in my code, or possibly failing to declare variables correctly, but a revisit doesn't seem to have improved things.
I shan't be offended no matter how basic the suggestions of what to check...
..or suggestions of how to use any diagnosis tools.
Thanks in advance.