Community
Participate
Working Groups
Build Identifier: 20100218-1602 When profiling I detect that there are copious scope provider instances and wonder if that is correct. In the following areas scope provider instances are registered: - classes in which the serializer is injected - subclasses of DefaultTemplateProposalProvider - subclasses of XtextContentAssistProcessor - subclasses of DefaultLinkingService - ... In summary I get for one DSL which derives from another and has references to other languages about 14 scope provider instances after just starting up my eclipse run-time instance and opening a model. Does that sound reasonable? Reproducible: Always
Hi Johan, I don't think that this is a problem as we cache a lot of information in the resource itself (as an adapter). As far as I know there is no identity information of the scope provider itself involved in the cache-key. That's why I don't expect any performance or memory problems. Did you experience any improvements due to a @Singleton annotation on your scope provider? Regards, Sebastian
Hi Sebastian, since M6 I have not been able to see any performance issues regarding the number of scope providers. I just wanted to file this issue as a question and to know whether you think what I'm describing sounds like something is totally wrong on my side or whether that's normal. Thanks and regards, Johan
The default behavior with guice is that it creates a new instance for each dependency. As long as components are stateless (as is the case with all our scope providers) it doesn't really matter wether they are singletons or not so we go with the default. Setting it to won't fix.
Closing bug which were set to RESOLVED before Eclipse Neon.0.