alexroldugin / spray

Automatically exported from code.google.com/p/spray
0 stars 0 forks source link

Improve performance of domain model completion in Spray DSL #150

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
To enable references to domain model elements from EMF models found in other 
workspace projects in every completion the complete workspace in scanned again.

There should be added some clever caching, e.g. only calculate EMF models when 
scoping the packages. 

Also the scope of the domain model classes should be reduced: Only classes from 
EPackages whose import is declared explicitly in the Spray DSL should be 
proposed.

Original issue reported on code.google.com by de.abg.r...@gmail.com on 8 Jul 2012 at 3:51

GoogleCodeExporter commented 8 years ago
Cache is enabled in latest Spray Juno build: 
https://spray.ci.cloudbees.com/job/spray-assembly-build/59/artifact/releng/org.e
clipselabs.spray.updatesite/target/repository/#

Still have to applied to Indigo branch

Original comment by de.abg.r...@gmail.com on 20 Sep 2012 at 7:05

GoogleCodeExporter commented 8 years ago
When changing an existing domain model project the Scoping still uses the 
cached values instead invalidating the cache, cf. 
http://groups.google.com/group/spray-dev/browse_thread/thread/1e7d44e7b4db4b32

Original comment by de.abg.r...@gmail.com on 24 Sep 2012 at 4:39

GoogleCodeExporter commented 8 years ago
a workaround for the cache rebuild problem is to restart Eclipse

Original comment by de.abg.r...@gmail.com on 24 Sep 2012 at 4:40

GoogleCodeExporter commented 8 years ago
the (re-)calculation of available and accessible EPackages is triggered if 
referenced Java projects of the current Java project are dirty (the current 
project is excluded as when the generator runs, this project is too often 
dirty).

Original comment by de.abg.r...@gmail.com on 8 Oct 2012 at 7:11

GoogleCodeExporter commented 8 years ago
if any problems, please reopen.

Original comment by de.abg.r...@gmail.com on 14 Oct 2012 at 8:33