Skip to content

Speed #74

@davepruitt

Description

@davepruitt

First let me say that I really love this package that you've developed. I think using LINQ-style syntax is a lot more intuitive and easier to read/understand than using Python list comprehension.

As an example, doing this:

filtered_times = Enumerable(all_times).where(lambda x: ((x >= start_time) and (x <= end_time))).to_list()

is more readable and intuitive than this:

filtered_times = [x for x in all_times if ((x >= start_time) and (x <= end_time))]

My one issue is with regard to speed. I've noticed that list comprehension is orders-of-magnitude faster than using py-enumerable.

Is there any way to speed up the performance of py-enumerable?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions