apex-enterprise-patterns / force-di

Generic DI library with support for Apex, Triggers, Visualforce and Lightning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optimize di_Injector.CustomMetadataModule class

ImJohnMDaniel opened this issue · comments

The di_Injector.CustomMetadataModule class makes Schema.describeSObjects() call within a method. The concern is that this is an expensive call and could be optimized if it were outside of the main For Loop.

Tasks:

  • Analysis of impacts
  • Make changes if it would be beneficial