0

I am writing an RCP application in eclipse. When I load my application my application models are loaded from a file in the disk and injected with context.

Using a profiler I noticed that the inject method slows me down...

Is this a known issue?

Thanks

whomaniac
  • 1,258
  • 4
  • 15
  • 22

1 Answers1

0

The short answer is no they aren't slow.

The first injection of a class which is not already in the context may mean that the class has to be constructed but this is no slower than normal class construction.

I have nearly 800 @Inject statements in one of my RCPs and this does not cause any problems.

greg-449
  • 109,219
  • 232
  • 102
  • 145
  • Interesting... I will soon try to improve performance of my app. When I will have conclusions I will mark your answer as accepted – whomaniac May 13 '15 at 14:54