You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add Lazy loading config by @stefannibrasil and @thdaraujo in https://github.com/faker-ruby/faker/pull/3244
6
+
7
+
### Enabling lazy load
8
+
9
+
This version introduces lazy loading. It means users will only pay for what they use. Faker [loads 2x faster](https://github.com/faker-ruby/faker/blob/main/experiments/lazy_load.md) when it's enabled.
10
+
11
+
Lazy loading the generators is disabled by default. To enable it, choose one of the configuration options below:
12
+
13
+
#### 1 - Set lazy load as a Faker Config
14
+
15
+
`Faker::Config.lazy_loading = true`
16
+
17
+
#### 2 - Set lazy load as an environment variable
18
+
19
+
`FAKER_LAZY_LOAD = 1`
20
+
21
+
We hope you get to see the improvement by enabling it. Please file a bug report for any issues!
22
+
23
+
Thanks to @jeremyevans for the mentoring, and to @thdaraujo for pairing and code reviews.
0 commit comments