EC3[PHP] - Getting the size of the collection in the loop #109
Labels
🗃️ rule
rule improvment or rule development or bug
🏆 challenge2023 🏆
Work done during the ecoCode Challenge 2023
php
👀 👀 review done 👀 👀
review done - waiting for changes
[ecoCode challenge 2023 - Team 28 days]
When iterating over any collection, fetch the size of the collection in advance to avoid fetching it on each iteration, this saves CPU cycles, and therefore consumes less power.
The text was updated successfully, but these errors were encountered: