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

Update bf.ex #178

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

poland-can-into-space
Copy link

@poland-can-into-space poland-can-into-space commented Sep 5, 2019

I made it faster and memory efficient by using ets tables.
Below is a statistical report generated by Benchee

Name ips average deviation median 99th %
ets 0.00689 2.42 min ±0.00% 2.42 min 2.42 min
original 0.00624 2.67 min ±0.00% 2.67 min 2.67 min

Comparison:
ets 0.00689
original 0.00624 - 1.10x slower +0.25 min

Memory usage statistics:

Name Memory usage
ets 13.12 GB
original 100.76 GB - 7.68x memory usage +87.65 GB

system

available_memory: "3.85 GB",
cpu_speed: "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz",
elixir: "1.9.1",
erlang: "22.0.7",
num_cores: 2,
os: :Linux

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.

1 participant