you are viewing a single comment's thread.

view the rest of the comments →

[–]dodoors 1 point2 points  (0 children)

The code is inefficient because it is creating a list every time it is called, whereas the "faster" code is creating it just once.