Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Stereotype Application very slow
Stereotype Application very slow [message #476384] Thu, 11 October 2007 09:19 Go to next message
Andreas Morf is currently offline Andreas MorfFriend
Messages: 14
Registered: July 2009
Junior Member
Hi all
I've got a problem when applying the first stereotype in my program:
It is a stereotype for the model element and it sometimes takes a minute
or more until the program continues. I remarked that during this time
ther is network traffic to eclipse.org repeatedly. In a debug session I
saw that it happens during a resolve call for the 'Model' element in
UML.metamodel.uml in the resource-jar.
If there is no network connection during program execution there is no
delay.
(Version: UML 2.1.1)

Anyone an idea?

Andreas
Re: Stereotype Application very slow [message #476389 is a reply to message #476384] Fri, 12 October 2007 14:15 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Andreas,

I've run a sample test with the latest code (UML2 2.2) and I'm not noticing
delays of a minute.

Please log a defect on this and it will be looked into. Also, please
provide any details so that this can be reproduced. Perhaps something
specific to your environment is causing this?

Cheers,
- James.

"Andreas Morf" <a.morf@fkl.ch> wrote in message
news:fekpvg$lvm$1@build.eclipse.org...
> Hi all
> I've got a problem when applying the first stereotype in my program:
> It is a stereotype for the model element and it sometimes takes a minute
> or more until the program continues. I remarked that during this time ther
> is network traffic to eclipse.org repeatedly. In a debug session I saw
> that it happens during a resolve call for the 'Model' element in
> UML.metamodel.uml in the resource-jar.
> If there is no network connection during program execution there is no
> delay.
> (Version: UML 2.1.1)
>
> Anyone an idea?
>
> Andreas
Re: Stereotype Application very slow [message #476392 is a reply to message #476384] Mon, 15 October 2007 17:43 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Andreas,

I do notice a bit of a delay on the first stereotype application but not in
the 1 minute timeframe ... I am seeing around 10 second delay.
The ElementOperations:applyStereotype() calls getExtension() which in turn
calls get type on the base type. That in turn causes a proxy resolution.
It seems like EcoreUtil::resolve is what is taking a long time (
specifically the resourceSet.getEObjet() ).

I believe that is the same behavior you are seeing.

- James.



"Andreas Morf" <a.morf@fkl.ch> wrote in message
news:fekpvg$lvm$1@build.eclipse.org...
> Hi all
> I've got a problem when applying the first stereotype in my program:
> It is a stereotype for the model element and it sometimes takes a minute
> or more until the program continues. I remarked that during this time ther
> is network traffic to eclipse.org repeatedly. In a debug session I saw
> that it happens during a resolve call for the 'Model' element in
> UML.metamodel.uml in the resource-jar.
> If there is no network connection during program execution there is no
> delay.
> (Version: UML 2.1.1)
>
> Anyone an idea?
>
> Andreas
Re: Stereotype Application very slow [message #625222 is a reply to message #476384] Fri, 12 October 2007 14:15 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Andreas,

I've run a sample test with the latest code (UML2 2.2) and I'm not noticing
delays of a minute.

Please log a defect on this and it will be looked into. Also, please
provide any details so that this can be reproduced. Perhaps something
specific to your environment is causing this?

Cheers,
- James.

"Andreas Morf" <a.morf@fkl.ch> wrote in message
news:fekpvg$lvm$1@build.eclipse.org...
> Hi all
> I've got a problem when applying the first stereotype in my program:
> It is a stereotype for the model element and it sometimes takes a minute
> or more until the program continues. I remarked that during this time ther
> is network traffic to eclipse.org repeatedly. In a debug session I saw
> that it happens during a resolve call for the 'Model' element in
> UML.metamodel.uml in the resource-jar.
> If there is no network connection during program execution there is no
> delay.
> (Version: UML 2.1.1)
>
> Anyone an idea?
>
> Andreas
Re: Stereotype Application very slow [message #625225 is a reply to message #476384] Mon, 15 October 2007 17:43 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Andreas,

I do notice a bit of a delay on the first stereotype application but not in
the 1 minute timeframe ... I am seeing around 10 second delay.
The ElementOperations:applyStereotype() calls getExtension() which in turn
calls get type on the base type. That in turn causes a proxy resolution.
It seems like EcoreUtil::resolve is what is taking a long time (
specifically the resourceSet.getEObjet() ).

I believe that is the same behavior you are seeing.

- James.



"Andreas Morf" <a.morf@fkl.ch> wrote in message
news:fekpvg$lvm$1@build.eclipse.org...
> Hi all
> I've got a problem when applying the first stereotype in my program:
> It is a stereotype for the model element and it sometimes takes a minute
> or more until the program continues. I remarked that during this time ther
> is network traffic to eclipse.org repeatedly. In a debug session I saw
> that it happens during a resolve call for the 'Model' element in
> UML.metamodel.uml in the resource-jar.
> If there is no network connection during program execution there is no
> delay.
> (Version: UML 2.1.1)
>
> Anyone an idea?
>
> Andreas
Previous Topic:Programmatically modifiying an association end
Next Topic:Re: metamodel conflict while reading xmi file
Goto Forum:
  


Current Time: Thu Apr 25 22:37:44 GMT 2024

Powered by FUDForum. Page generated in 0.02635 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top