bootsnap

Boot large Ruby/Rails apps faster (by Shopify)

Bootsnap Alternatives

Similar projects and alternatives to bootsnap

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better bootsnap alternative or higher similarity.

bootsnap reviews and mentions

Posts with mentions or reviews of bootsnap. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-12-25.
  • Abstract Methods and NotImplementedError in Ruby
    1 project | news.ycombinator.com | 12 Apr 2024
    Indeed, I did not mention Bootsnap so as to detract the core point.

    > That's one of the things Bootsnap does to speedup boot time. And when you do that, there's no compilation at runtime.

    Correct, if one does `bootsnap precompile`.

    Bootsnap hooks itself on `Kernel#load` + `Kernel#require` and `RubyVM::InstructionSequence#load_iseq`:

    https://github.com/Shopify/bootsnap/blob/f627992c52642394311...

    https://github.com/Shopify/bootsnap/blob/f627992c52642394311...

    https://github.com/Shopify/bootsnap/blob/f627992c52642394311...

    https://github.com/Shopify/bootsnap/blob/f627992c52642394311...

    Essentially this means that it makes LOAD_PATH lookup faster + intercepts iseq compilation to store to cache on a miss and return a cached version on a hit.

    That does not change the load order.

    > But that doesn't change anything about OP's suggestion, it's still impossible to know if an interface will ever be implemented.

    Again correct, as even with `bootsnap precompile` it would only result in earlier ISeq generation (it is essentially cache priming instead of doing it "lazily" on demand), not the time at which these ISeq get loaded and effective, so even then an `abstract` keyword would be ineffective.

  • Long story short: I build a Ruby extension with Zig
    2 projects | dev.to | 25 Dec 2022
    I always had mixed feelings about writing native Ruby extensions. They surely are the way to make critical parts of the code run faster, but the developer experience around that was not great for a Ruby programmer like me. Sure, I know C. This was the second language I learned (after Pascal). I can write C, I can read C, and I even wrote some larger extensions in it, but I never felt comfortable with it.
  • Acelerando o boot da sua aplicação Rails
    1 project | dev.to | 3 May 2022
  • Cut your Rails boot times on Heroku in half with a single command
    2 projects | dev.to | 23 Mar 2022
    To alleviate this problem, the engineers at Shopify created bootsnap, a gem which automatically detects and caches exact load paths to make those require calls fast (see Bootsnap: Optimizing Ruby App Boot Time for details).
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 9 May 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →

Stats

Basic bootsnap repo stats
4
2,642
8.0
about 1 month ago

Shopify/bootsnap is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of bootsnap is Ruby.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com