Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Nov 13, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

k0kubun and others added 8 commits November 12, 2025 17:06
- ### Problem

  This limit is used when Bundler fallback to getting a dependency
  list from a server `/dependencies?gem=` endpoint. Bundler uses
  this API endpoint fallback when a server doesn't expose the compact
  index API.
  This is not used for Rubygems.org, only private servers.

  This limit is then divided by the number of dependency to get
  and the result is the number of request we'll be doing.
  The bottleneck on the client is the network roundtrip. On the
  server, getting the info of 50 or 100 gems is a bit more expensive
  but this operation is heavily cached.

  This is an example of Rubygems.org implementation at the time the
  dependencies API wasn't deprecated
  https://github.com/rubygems/rubygems.org/blob/5a3a3ec02acc3a4e3aba077953a393ad20a06842/app/models/gem_dependent.rb#L15

  ### Context

  This limit used to be 100 a while ago but got changed
  to 50 in ruby/rubygems@e745f8d
  I don't know why.

  ### Solution

  50 gems to query seems arbitrary low. By doubling this number, we
  make twice as less API requests which ultimately can shove up to two
  seconds on application relying on a large number of gems.

ruby/rubygems@831894043c
The path already used in tool/test/test_sync_default_gems.rb .

Try to fix errors on Windows.

https://github.com/ruby/ruby/actions/runs/19316448613/job/55248700110
- I'd like to be able to see how long bundler takes for basic
  operations such as downloading a gem from Rubygems.org and
  installing a gem.

  It will now be possible with this commit by running
  `DEBUG=true bundle install` and have output that looks like:

  Fetching rack-test 2.2.0
  Downloaded rack-test in: 50.523s
  Installing rack-test 2.2.0
  Installed rack-test in: : 0.003s

ruby/rubygems@46386d43e1
@pull pull bot locked and limited conversation to collaborators Nov 13, 2025
@pull pull bot added the ⤵️ pull label Nov 13, 2025
@pull pull bot merged commit 2534854 into turkdevops:master Nov 13, 2025
1 of 2 checks passed
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.

5 participants