Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add libgmp for faster Integer calculations. #266
I was wondering why some large integer multiplications were taking a while, so I ran
and found that GMP wasn't included in the default images. Building these images gives me
For significantly large integers (on my machine) GMP is over 50x faster than Ruby's fallback Integer methods: https://github.com/ruby/ruby/blob/a2eb04f52dccb9b42404f8b133acb36b577e3b54/bignum.c#L2527
(The two build failures look like RubyGems 502s?
Nice catch; I dug in and found ruby/ruby@83a0709, which led me to wonder if this was actually applicable enough to add to
... and thus file docker-library/buildpack-deps#92.
Mar 1, 2019
1 check passed
If you came here because of
That's probably because of It seems that
To fix it:
Since this PR was merged
To solve the issue you should install it by yourself (
I tested it with Ruby 2.5.3 & Nokogiri 1.8.4 and the described approach solved the issue.