Avoid instanciating a variable in a loop | CAST Appmarq

Avoid instanciating a variable in a loop

CRITICAL

Rule Definition
Instanciating a variable in a loop can be expensive

Remediation
Do not instantiate variable in loop.

Reference
http://opensource.adobe.com/wiki/display/flexpmd/FlexPMD

Related Technologies

Health Factor

  Security


Technical Criterion
Efficiency - Memory, Network and Disk Space Management

About CAST Appmarq

CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.

Benchmark Statistics

Global Compliance

99.96%

Total Violations
49
Total Opportunities
123,705
Average Violations / App.
8.17
The compliance score represents 1 minus the ratio between the number of times a rule has been violated compared to the number of opportunities in a set of applications that the rule could have been violated.

Industry Insights

Financial Services

98.99%

Insurance

98.73%

Select from drop-down

97.73%