Tag: optimization

2 posts · All tags

JavaScript: Optimizing loops

When looping through very large arrays, you may find this tip useful: it's much fast to use a while loop to iterate through an array than a for loop. For example, if you take this code: You can make it run faster by using a while loop instead. This works…

Read more →