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
As I've commented in #215, there are many instances of iterators in PAM that are not performant.
If there is a case where you want a class method/property to yield an element in a simple iterator (list, tuple, set, flat dict, ...), then wrapping the object in iter will yield about twice as quick as for i in foo: yield i.
Version
0.2.5-dev
The text was updated successfully, but these errors were encountered:
What can be improved?
As I've commented in #215, there are many instances of iterators in PAM that are not performant.
If there is a case where you want a class method/property to yield an element in a simple iterator (list, tuple, set, flat dict, ...), then wrapping the object in
iter
will yield about twice as quick asfor i in foo: yield i
.Version
0.2.5-dev
The text was updated successfully, but these errors were encountered: