Changes
- Add Lazy loading config by @stefannibrasil and @thdaraujo in #3244
Enabling lazy load
This version introduces lazy loading. It means users will only pay for what they use. Faker loads 2x faster when it's enabled.
Lazy loading the generators is disabled by default. To enable it, choose one of the configuration options below:
1 - Set lazy load as a Faker Config
Faker::Config.lazy_loading = true
2 - Set lazy load as an environment variable
FAKER_LAZY_LOAD = 1
We hope you get to see the improvement by enabling it. Please file a bug report for any issues!
Thanks to @jeremyevans for the mentoring, and to @thdaraujo for pairing and code reviews.
Full Changelog: v3.7.1...v3.8.0