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
The PR: #569 which introduced generators support in fromdicts has increased memory usage on our production instances.
Problem description
Per itertools.tee docs:
This itertool may require significant auxiliary storage (depending on how much temporary data needs to be stored). In general, if one iterator uses most or all of the data before another iterator starts, it is faster to use list() instead of tee().
This most likely is the cause. Due to this, the generator support should:
Be moved to a separate method, ie. fromdictsgenerator
The method should use a temporary file, similarly to how SortView does
The text was updated successfully, but these errors were encountered:
The problem description does not describe a "memory leak"
Perhaps something like "Generator support in fromdicts requires large amounts of memory" would be a more appropriate title?
arturponinski
changed the title
Generator support in fromdicts causes memory leaks
Generator support in fromdicts requires large amount of memory
Jul 13, 2022
The PR: #569 which introduced generators support in
fromdicts
has increased memory usage on our production instances.Problem description
Per
itertools.tee
docs:This most likely is the cause. Due to this, the generator support should:
fromdictsgenerator
SortView
doesThe text was updated successfully, but these errors were encountered: