Skip to content

Optimize iteration #2

@natedsaint

Description

@natedsaint

BACKGROUND

Theoretically, forEach should be optimized now in most browsers, but invoking a method each time is still sometimes more expensive.

BASIC IMPLEMENTATION

Just replace all loops with for or while loops which are faster

VALIDATE

Make sure to do before and after perf checks to see if it's worth it

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions