Skip to content

Improve simple yield speed #232

@brynpickering

Description

@brynpickering

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 as for i in foo: yield i.

Version

0.2.5-dev

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions