Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

Version 1 Current »

Class factory is used to instantiate classes on demand. As being 2nd most important component of In-Portal (after unit configs) it needs to be as fast as possible for not to slow down anybody. Luckily there is a profiler code in place, but code itself isn't efficient because it checks "if profiler" enabled each time it's called knowing upfront, that profiler can't be disabled in the middle of application run.

Solution

  1. detect once if profiler is enabled and store it somewhere
  2. use stored value when collecting profiler information

Related Tasks

  • No labels