@timriley@katafrakt this makes sense, faker comes with a loooot of files and we know that require is dead slow. Would be nice to do something about it.
@stoivo@timriley@katafrakt yes but it doesn't change the fact that gems could either use zeitwerk or at least be cherry-pickable so that you don't have to load tons of files when you only need a small portion of an entire library. Also, bootsnap may cause issues sometimes, or at least that was my experience last time I used it.
Speedup require and first call · Issue #2719 · faker-ruby/faker
Hi, I use faker and I noticed that some parts are slower then what I would have liked. I wonder if you have had some ideas for what you would like to do to make it faster to load and use. I did a b...
@solnic@timriley@katafrakt No, it loads all yaml files when you need the first translation. Most fakers use a translation as a set it samepls from. Faker::Crypto::Sha1 is one of the few which don't