Hey, I was looking through the source code and happened to come across this really small efficiency improvement opportunity. Basically instead of getting the length of the iterable every iteration and subtracting one from it to get the last index, I thought it may be better to calculate it outside the for-in loop.
First time here 👀
Hey, I was looking through the source code and happened to come across this really small efficiency improvement opportunity. Basically instead of getting the length of the iterable every iteration and subtracting one from it to get the last index, I thought it may be better to calculate it outside the for-in loop. First time here 👀