Skip to content
This repository was archived by the owner on Sep 25, 2020. It is now read-only.
This repository was archived by the owner on Sep 25, 2020. It is now read-only.

micro-optimization: avoid Object.keys() #17

@Raynos

Description

@Raynos

Refactor https://github.com/uber/lb_pool/blob/master/pool_endpoint.js#L152
Into an for (var key in obj) { loop.

This avoids allocating keys. About 2.5% of the CPU for rtapi is spend in this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions