Skip to content

Add rule "Getting the size of the collection in the loop" #83

@mathis-girault

Description

@mathis-girault

Solution you'd like

When iterating over any collection, fetch the size of the collection in advance to avoid fetching it on each iteration, this saves CPU cycles, and therefore consumes less power.

Is your feature request related to a problem?

No response

Alternatives you've considered

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions