Skip to content

Query regarding MediatorState - Objects Loop Performance #267

Open
@Snky

Description

@Snky

How important is the implementation of:
object = _objects.shift();
_objects.push(object);

rather than just:
object = _objects[ i ];

( in the update function )
I thought I'd ask first, I've found the bottom one liner plus commenting out the push, at least 20% faster, but this could come off me being really silly, if you have a really important reason for sorting the objects.. like perhaps, groups do not work properly from the one liner way.

I haven't tested killing yet, but yeah, just curious about the implementation really, and it's purpose that I may not be seeing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions