Performance of Xtext editor [message #1775263] |
Fri, 27 October 2017 03:53 |
zhang ph Messages: 43 Registered: March 2017 |
Member |
|
|
Hi
Recently, I want to edit my DSL model(based on Xtext grammar) in Xtext Editor, then I found when i break the matched quotation marks, the function 'computeDamageRegion' will loop for a long time, which will block the UI. Like:
ApplicationInstance "simple.cps.app.AC0-0.inst0" {
},
ApplicationInstance "simple.cps.app.AC0-0.inst1" {
},
ApplicationInstance "simple.cps.app.AC0-0.inst2" {
allocatedTo "simple.cps.host.HC00.inst11"
}
When i delete a quotation(") in my model(About 150,000 Eobject, 250,000 References), the function consumed about 1,080,000ms and the during the time, the UI is blocked. Could you offer me any suggestion about this ?
Thanks in advance!
[Updated on: Fri, 27 October 2017 04:04] Report message to a moderator
|
|
|
|
Re: Performance of Xtext editor [message #1775268 is a reply to message #1775266] |
Fri, 27 October 2017 05:28 |
zhang ph Messages: 43 Registered: March 2017 |
Member |
|
|
No, it is just the instance name. If I change the section in quotations, the above function won't consume a long time. After my debuggin, i find when breaking the matched quotations, it won't locate the affected region, and will loop until the end of the document, which need a long time. Am i right?
[Updated on: Fri, 27 October 2017 05:36] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02201 seconds