Skip to content

Improvement: cached for loops #13

@mster

Description

@mster

Hello there!

I was looking into speeding up native functions and came across your package. Awesome work so far. I wanted to inquire about some for loops you're using, for example: https://github.com/kb-dev/sanic.js/blob/master/lib/array/map.js#L30

Would caching the length values help you improve performance even further? I got the idea from your article: https://medium.com/kbdev/voyage-to-the-most-efficient-loop-in-nodejs-and-a-bit-js-5961d4524c2e

If you think so, I would love to open up a PR with the improvement. Cheers!

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