# Accelerating Ruby: How Our Bundle Install Times Got 12x Faster

DevFeed: [Accelerating Ruby: How Our Bundle Install Times Got 12x Faster](<https://devfeed.tech/articles/accelerating-ruby-how-our-bundle-install-times-got-12x-faster-15482.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/accelerating-ruby-how-our-bundle-install-times-got-12x-faster>)

Author: Roger Hu

Published: 2023-05-23T15:00:00Z

Content type: article

Language: en

Sources: [Square Corner](<https://devfeed.tech/sources/square-corner-blog-medium.md>)

Topics: [Ruby](<https://devfeed.tech/topics/ruby.md>), [rubygems](<https://devfeed.tech/topics/rubygems.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Ruby on Rails](<https://devfeed.tech/topics/ruby-on-rails.md>)

Tags: [bazel](<https://devfeed.tech/tags/bazel.md>), [bug](<https://devfeed.tech/tags/bug.md>), [build-times](<https://devfeed.tech/tags/build-times.md>), [caching](<https://devfeed.tech/tags/caching.md>), [cdn](<https://devfeed.tech/tags/cdn.md>), [ci](<https://devfeed.tech/tags/ci.md>), [cocoapods](<https://devfeed.tech/tags/cocoapods.md>), [community](<https://devfeed.tech/tags/community.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [faster](<https://devfeed.tech/tags/faster.md>), [indexes](<https://devfeed.tech/tags/indexes.md>), [install](<https://devfeed.tech/tags/install.md>), [installation](<https://devfeed.tech/tags/installation.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [open-source-community](<https://devfeed.tech/tags/open-source-community.md>), [ruby](<https://devfeed.tech/tags/ruby.md>)

## AI overview

Square migrated Ruby gems from a self-hosted Gemstash setup, which lacked compact index support, to a vendor-supported solution. Bundler's compact index uses cached, append-only text data distributed through a CDN, avoiding reliance on a computationally expensive API and enabling geographically faster downloads. For the Android Point of Sale codebase, the measured install time fell from four minutes to 20 seconds (12x). During migration, some CI jobs hit checksum mismatches due to a compact index bug involving different Ruby interpreter types; the team reported it to the vendor and used a workaround. The post credits Ruby open source contributors for developing and adopting the format.

## Source excerpt

A special thanks to the Ruby open source community