Avoid allocating arrays in most methods of ComponentType

Description

Many methods of ComponentType are allocating temporary arrays to iterate on property values, but the arrays are actually not necessary as these properties can be accessed directly.

Also a nice side-effect: many of these methods have an early exit condition, so we can actually skip processing the properties which are otherwise unnecessarily copied into the arrays.

Activity

Show:

Brett MeyerFebruary 27, 2014 at 12:13 AM

Thanks!

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Priority

Created February 26, 2014 at 5:46 PM
Updated May 5, 2022 at 10:53 AM
Resolved May 5, 2022 at 10:53 AM