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

Reduce memory usage and speed up computation #54

Merged
merged 14 commits into from Jul 10, 2015
Merged

Conversation

jni
Copy link
Collaborator

@jni jni commented Jul 10, 2015

RAG memory footprint is down ~40%
RAG build time is down ~70%

jni added 14 commits July 8, 2015 11:14
This reduces the peak memory footprint by 20%:

- before:

```
In [13]: h = agglo.Rag(ws, p1, feature_manager=tf.f4)
In [13] used 104.9492 MiB RAM in 29.23s, peaked 62.71 MiB above current, total RAM usage 447.95 MiB
```

- after:

```
In [18]: k = agglo.Rag(ws, p1, feature_manager=tf.f4)
In [18] used 109.6367 MiB RAM in 29.08s, peaked 28.79 MiB above current, total RAM usage 559.28 MiB
```
The progress bar can still be enabled, but the idxs sequence is not
wrapped in a null-object when it's not needed. This speeds things up
by about 10%.
jni added a commit that referenced this pull request Jul 10, 2015
Reduce memory usage and speed up computation
@jni jni merged commit c912bf6 into janelia-flyem:master Jul 10, 2015
@jni jni deleted the memreduce branch July 10, 2015 18:08
@NealJMD
Copy link
Contributor

NealJMD commented Jul 13, 2015

way to go juan!

@jni
Copy link
Collaborator Author

jni commented Jul 13, 2015

@NealJMD 👍 Thanks! =)

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

Successfully merging this pull request may close these issues.

None yet

2 participants