| Summary: | [Xtext] Copious scope provider instances | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Johan Wannheden <johan.wannheden> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sebastian.zarnekow, stephane, sven.efftinge |
| Version: | 0.7.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
|
Description
Johan Wannheden
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. |