Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve memory efficiency of reduceByKey at line 363 #14

Open
rokroskar opened this issue Dec 7, 2016 · 0 comments
Open

improve memory efficiency of reduceByKey at line 363 #14

rokroskar opened this issue Dec 7, 2016 · 0 comments
Labels

Comments

@rokroskar
Copy link
Owner

The reduceByKey uses only the ghost particles but maybe all of them are kept in memory because of the slice in getting no_ghosts_rdd.

Could try something like

def get_ghosts(p): 
   ghosts = p[np.where(p['is_ghost'] != GHOST_PARTICLE_COPY)[0]]
   del(p)
   return ghosts

Has to be tested if this actually reduces the memory or not.

@rokroskar rokroskar added the bug label Dec 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant