Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

use generators instead of pre-computing all the samples into the memory #31

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jbinary
Copy link

@jbinary jbinary commented Sep 10, 2019

helps to save huge amount of RAM while preserving performance

It appeared impossible for me to use the lib on a machine with 64Gigs of RAM because it ran out of memory. This simple fix made memory footprint neglectable.

helps to save huge amount of RAM while preserving performance
@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@spencebeecher has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@spencebeecher
Copy link
Contributor

Hi @jbinary ! Thanks for the commit! It looks like izip is not supported by python3 (perhaps being automatically handled by zip - https://stackoverflow.com/questions/32659552/importing-izip-from-itertools-module-gives-nameerror-in-python-3-x). Can you run unit tests for python3 and confirm your solution works? I am getting test failure errors around izip for python3 runtime. Thank you!

@facebook-github-bot
Copy link

@jbinary has updated the pull request. Re-import the pull request

@jbinary
Copy link
Author

jbinary commented Sep 10, 2019

ouch. sorry did not realize there are any tests in the first place

Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@spencebeecher has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@jbinary
Copy link
Author

jbinary commented Oct 28, 2019

hey guys, I have no any chance to see what went wrong here, could you give me a clue maybe?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants