Your code is killing polar bears
If you’ve never been introduced to the concept of transistors and boolean algebra, code execution can seem mysterious and potentially magical. The truth, however, is that executing a line of code is fundamentally a physical process that requires energy (or the tiny wizard under the keyboard has to eat, whatever works for you).
Inefficient code not only slows down your application, it heats up your CPU, increases your electricity bill, and increases your carbon footprint as well.
Sadly, I don’t yet have a real handle on the best methodology to handle this issue. In my defense, I only learned it was an issue this morning.
In the future I plan to write a post that will lay out the basic logic behind choosing to add computations in one file vs. another, but in the meantime if you want to limit the number of polar bears suffering from your inefficient code, write it so you use as few loops as possible.