Skip to Content
0
Former Member
Feb 18, 2009 at 04:27 PM

Universe Designer SDK question

33 Views

Hi all.

I am writing an application that creates a universe using the Designer SDK com (Executable, actually).

I am actually not a windows programmer, but a Java programmer, but since Designer has only windows SDK, I am using C# .NET for this purpose, but I don't think it realy matters...

Anyways, I am adding Joins and Objects to the universe, and what I noticed, is, that at the beginning I can add, for example, 200 Objects a second to the universe (into a Class, of course), but soon afterwards, the rate goes down to about 4 (four !) Objects a second, and therefore, when dealing with large universes, it takes a LOT of time (to say the least...).

This is the code I use:

foreach (JoinDef joinDef in joinDefs)

{

log.Debug("addJoins: 1 adding join " + joinDef.name);

desJoin = universe.Joins.Add(joinDef.Value);

log.Debug("addJoins: 2 Join added to joins collection: " + joinDef.name);

.

.

.

}

Where JoinDef holds the definitions for the joins. the action that consumes the time is the

Code:

desJoin = universe.Joins.Add(joinDef.Value);

line, as I saw in the logs.

Does anyone has any ideas what can I do with that ?

Thanks a Lot

Razmovich Ehud.