TelluIoT / ThingML

The ThingML modelling language
https://github.com/TelluIoT/ThingML
Apache License 2.0
102 stars 32 forks source link

Checker performances issues in eclipse #194

Closed ffleurey closed 6 years ago

ffleurey commented 7 years ago

The checker seem to trigger way too often (or take too much time). Working on this project https://github.com/ffleurey/ThingML-PongTutorial in eclipse is almost impossible because for every time on file is checked, all the thingml files in the workspace are re-parsed and checked. Before the checker was improved to catch more errors, this was not much of a problem. We should:

1/ Make sure that we do not run the checker more than needed (it may be that xtext default behavior is to re-pared and validate too often) and

2/ we should use a profiler on the checker to make sure that there are no big inefficiencies in it.

brice-morin commented 7 years ago

Yes, I think I have experienced the same issues on the same project :-) I guess the default strategies should be to check on save, or something like this.

Well, the checker is deeply inefficient. It did not really show until we start to have proper ThingML model :-) Each rule basically re-browse the whole configuration and looks for stuff it is interested in. I think a better approach would be:

brice-morin commented 7 years ago

Feel free to fix it, as I cannot allocate time on ThingML anymore... Or maybe I can have a look this weekend if I get bored.

brice-morin commented 6 years ago

More than good enough now