You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we have a for loop over a fixed-length list or tuple, we can store the iterated values in a stack-allocated array and don't need to allocate a temporary list/tuple object. Example:
fornin [x, y, z]:
f(n)
If we are iterating over a set, we can't easily do this, since the order of items is unpredictable.
If we are iterating over unboxed types, we can probably avoid boxing/unboxing as well.
The text was updated successfully, but these errors were encountered:
If we have a for loop over a fixed-length list or tuple, we can store the iterated values in a stack-allocated array and don't need to allocate a temporary list/tuple object. Example:
If we are iterating over a set, we can't easily do this, since the order of items is unpredictable.
If we are iterating over unboxed types, we can probably avoid boxing/unboxing as well.
The text was updated successfully, but these errors were encountered: