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.
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.