Consider using iterators instead of lists and dicts #88

Closed
opened 2022-06-04 11:04:53 +02:00 by pfm · 1 comment
Collaborator

Original code uses concrete data containers, like list or dict. However, they have to be stored in memory. Using Python generators and filters we could get the same results without storing intermediate results in memory.

Goals:

  1. Rework the code to use generators and filters.
  2. Measure time before and after the change.
  3. Find out if using generators and filters give us any benefits.
Original code uses concrete data containers, like `list` or `dict`. However, they have to be stored in memory. Using Python generators and filters we could get the same results without storing intermediate results in memory. Goals: 1. Rework the code to use generators and filters. 2. Measure time before and after the change. 2. Find out if using generators and filters give us any benefits.
pfm added the
CODE
IDEA
labels 2022-06-04 11:04:53 +02:00
pfm self-assigned this 2022-06-04 11:04:53 +02:00
pfm added a new dependency 2022-06-05 21:28:46 +02:00
Author
Collaborator

This should probably happen incrementally, where this approach actually fits.

This should probably happen incrementally, where this approach actually fits.
pfm closed this issue 2022-10-19 23:04:02 +02:00
Sign in to join this conversation.
No description provided.