Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [XCORE] Ugly Performance Problems([XCORE] Ugly Performance Problems)
[XCORE] Ugly Performance Problems [message #1395880] Mon, 07 July 2014 14:32 Go to next message
xjn Mising nameFriend
Messages: 20
Registered: May 2010
Junior Member
Hi,

I'm trying to use XCore for a model with about 70 small classes/enums, most classes with little attribute, some with many attributes. Nothing really big ...

Model validation in the XCore-Editor took about 15-30 secs, even if i only add or remove a blank char in a comment.
Also on every insert/delete.
Also on typing some text anywhere, typing and stuck ...
And the Eclipse-UI, not only the XCore-Editor, completely stucks !
Everything is blocked, also no more key-strokes are recorded !

The validation enters (and blocks editing and UI) faster than i can
type "class X {}".
I type "clas" and stuck, after validation completed, i type "s X" and
stuck and so on ...

From UI-Perspective, it is completly unusable. One must edit every part outside the XCore-Editor and then using cut/past.

Same ist for code-completition. A really nice feature, but it takes also 15-30 secs till a response ! Every time, also if nothing has changed between to code-completition requests ...

---

When validating was done and no errors, if i save the model it took about 3-5 Minutes and more to complete, even is nothing has changed !

---

I have a fast Notebook, 1GB Memory reserved for eclipse.
And everything works nice in Eclipse.

Only my XCore adventure is about to kill me Smile


thx for any advice, idea or help




br
xjn
Re: [XCORE] Ugly Performance Problems [message #1395930 is a reply to message #1395880] Mon, 07 July 2014 16:13 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Xin,

Comments below.

On 07/07/2014 4:32 PM, xjn Mising name wrote:
> Hi,
>
> I'm trying to use XCore for a model with about 70 small classes/enums,
> most classes with little attribute, some with many attributes. Nothing
> really big ...
I think someone measured that this was mostly caused by very poor
performance of the outline view. You might try closing that. Not that
it's a great solution, but worth a try.
>
> Model validation in the XCore-Editor took about 15-30 secs, even if i
> only add or remove a blank char in a comment. Also on every
> insert/delete. Also on typing some text anywhere, typing and stuck ...
> And the Eclipse-UI, not only the XCore-Editor, completely stucks !
> Everything is blocked, also no more key-strokes are recorded !
>
> The validation enters (and blocks editing and UI) faster than i can
> type "class X {}". I type "clas" and stuck, after validation
> completed, i type "s X" and stuck and so on ...
>
> From UI-Perspective, it is completly unusable. One must edit every
> part outside the XCore-Editor and then using cut/past.
That's sad. Though I know folks with models that sound bigger than
what you've described who don't have this problem. Maybe you can open a
bugzilla and share your example? You could change all the names to
something meaningless if you don't want everyone to see your *.xcore's
significance.
>
> Same ist for code-completition. A really nice feature, but it takes
> also 15-30 secs till a response ! Every time, also if nothing has
> changed between to code-completition requests ...
>
> ---
>
> When validating was done and no errors, if i save the model it took
> about 3-5 Minutes and more to complete, even is nothing has changed !
>
> ---
>
> I have a fast Notebook, 1GB Memory reserved for eclipse.
> And everything works nice in Eclipse.
> Only my XCore adventure is about to kill me :)
I'd need to see that in action.
>
>
> thx for any advice, idea or help
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [XCORE] Ugly Performance Problems [message #1397325 is a reply to message #1395930] Wed, 09 July 2014 14:59 Go to previous messageGo to next message
xjn Mising nameFriend
Messages: 20
Registered: May 2010
Junior Member
Ed,

thx for the fast reply.

UI performance problems :

> I think someone measured that this was mostly caused by very poor
> performance of the outline view. You might try closing that. Not that
> it's a great solution, but worth a try.
I've already closed the outline view, i knew perfomance problems with this view.

So I've played a bit around, installed a completly fresh Luna with only the
minimum additional plugins i need.

And the problem is : the Properties View !
As soon as this view gets opened, even not selected, the UI stucks very often and long.
The bigger the model, the poorer the performance, at a certain model size the UI stucks and freezes.

Closing the Properties View editing/validation works fine, even with bigger models.


It looks a bit as if the Xtext-Validator and the Properties View are (b)locking each other.

---


br



br
xjn
Re: [XCORE] Ugly Performance Problems [message #1398005 is a reply to message #1397325] Thu, 10 July 2014 13:21 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Please open a bugzilla.

On 09/07/2014 4:59 PM, xjn Mising name wrote:
> Ed,
>
> thx for the fast reply.
>
> UI performance problems :
>
>> I think someone measured that this was mostly caused by very poor
>> performance of the outline view. You might try closing that. Not that
>> it's a great solution, but worth a try.
> I've already closed the outline view, i knew perfomance problems with
> this view.
>
> So I've played a bit around, installed a completly fresh Luna with
> only the
> minimum additional plugins i need.
>
> And the problem is : the Properties View ! As soon as this view gets
> opened, even not selected, the UI stucks very often and long. The
> bigger the model, the poorer the performance, at a certain model size
> the UI stucks and freezes.
>
> Closing the Properties View editing/validation works fine, even with
> bigger models.
>
>
> It looks a bit as if the Xtext-Validator and the Properties View are
> (b)locking each other.
>
> ---
>
>
> br
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [XCORE] Ugly Performance Problems [message #1398564 is a reply to message #1398005] Fri, 11 July 2014 08:49 Go to previous messageGo to next message
xjn Mising nameFriend
Messages: 20
Registered: May 2010
Junior Member
Bugzilla :

https://bugs.eclipse.org/bugs/show_bug.cgi?id=439407


br
xjn
Re: [XCORE] Ugly Performance Problems [message #1403139 is a reply to message #1398564] Mon, 21 July 2014 15:52 Go to previous messageGo to next message
xjn Mising nameFriend
Messages: 20
Registered: May 2010
Junior Member
Hi,

you wrote that you have not been able to reproduce "long UI freezes".

May be your Computer is much faster as mine.
Make the dummy model ten-times bigger for testing, for me it's
reproducable ...

--

With the patch applied for above Bug, XCore UI, with open
Outline- and Properties-View, is much more responsible and
the time of completly blocking is almost gone !
Thx !!!

---

There are still some stucking UI issues, one to four seconds
for my model, but no more completly blocking.

In this context, stucking for me means, I'm not able to move the
cursor or to enter data in the XCore Editor, but I'm able to move
the mouse around and select other objects or do something else, not
related to the XCore Editor.

---

For me it looks like as if "Xtext Validation", "Xcore Update
Editor State" and updates of "Outline- and Properties-View" are
interferring each other with read/write locks ...

It also looks like, as if they all use the same Thread/Processor.
My max. load is 25% on a 4 Kernel System ..

thx



br
xjn
Re: [XCORE] Ugly Performance Problems [message #1403430 is a reply to message #1403139] Wed, 23 July 2014 15:54 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Comments below.


On 21/07/2014 5:52 PM, xjn Mising name wrote:
> Hi,
>
> you wrote that you have not been able to reproduce "long UI freezes".
> May be your Computer is much faster as mine. Make the dummy model
> ten-times bigger for testing, for me it's reproducable ...
>
> --
>
> With the patch applied for above Bug, XCore UI, with open Outline- and
> Properties-View, is much more responsible and the time of completly
> blocking is almost gone ! Thx !!!
That's good to hear.
>
> ---
>
> There are still some stucking UI issues, one to four seconds for my
> model, but no more completly blocking.
>
> In this context, stucking for me means, I'm not able to move the
> cursor or to enter data in the XCore Editor, but I'm able to move the
> mouse around and select other objects or do something else, not
> related to the XCore Editor.
>
> ---
>
> For me it looks like as if "Xtext Validation", "Xcore Update Editor
> State" and updates of "Outline- and Properties-View" are interferring
> each other with read/write locks ...
Certainly these things do acquire read locks (which I think can be
shared), but the model itself updating needs a write lock...
>
> It also looks like, as if they all use the same Thread/Processor.
> My max. load is 25% on a 4 Kernel System ..
I'm sure the validation and outline updating are done one background
threads (separate jobs), but at some point they do need to refresh the
UI itself on the UI thread. But given you say you can do things in
other parts of the IDE, it's not as if the UI thread itself is block,
it's more like the Xcore editor can't respond until it acquires a lock
held by a background job.

I'd need to be able to reproduce such a problem to start tracking it
down and as I mentioned in the bugzilla, I certainly never experienced
many seconds of unresponsiveness. The only remaining problem I saw was
poor selection behavior in the outline view, but Jan fixed that in Xtext
itself.

If you can carefully outline the steps to reproduce the problem in a
bugzilla, and this time include your *.xcore you're using, I can better
try to reproduce the remaining problems locally.
>
> thx
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[CDO] How to merge 2 repos that have diverged
Next Topic:Problem importing PSF file from oomph & questions about tartlets
Goto Forum:
  


Current Time: Fri Apr 19 08:06:02 GMT 2024

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

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

Back to the top