Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

optimization: don't look up the length of arrays with constant length in the for head #325

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aminya
Copy link
Contributor

@aminya aminya commented Sep 30, 2020

Description of the change

Don't look up the length of arrays with constant length in the for head by storing the array length instead of checking it every time in the for loop head.

Verification

The length of these arrays does not change inside the for.

Benefits

Faster loop

Release Notes

  • optimization: don't look up the length of arrays with constant length in the for head

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant