Commit 7cc1158
Autoload OpenSSL (#3188)
* Profile and benchmark with autoload
Co-Authored-By: Thiago Araujo <thd.araujo@gmail.com>
* Remove scripts
Co-Authored-By: Thiago Araujo <thd.araujo@gmail.com>
* Autoload OpenSSL
Profiling laoding faker showed that by autoloading
OpenSSL, we could improve Faker's loading time by about
17%. A lot of the time is spent on set_default_paths.
Given that OpenSSL is only used in a very limited
way and only by 3 generators, this would speed up
the library for most users.
Co-Authored-By: Thiago Araujo <thd.araujo@gmail.com>
---------
Co-authored-by: Thiago Araujo <thd.araujo@gmail.com>1 parent 9cadf41 commit 7cc1158
4 files changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | 5 | | |
| |||
0 commit comments