Commit 5bd725d
committed
ENH: Delay loading of less likely modules
Using python -X importtime -c "import lazy_loader":
Before
------
import time: self [us] | cumulative | imported package
[...]
import time: 131 | 22995 | lazy_loader
After
-----
import time: self [us] | cumulative | imported package
[...]
import time: 115 | 4248 | lazy_loader1 parent 512d6fc commit 5bd725d
1 file changed
+7
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 15 | | |
22 | 16 | | |
23 | 17 | | |
| |||
200 | 194 | | |
201 | 195 | | |
202 | 196 | | |
203 | | - | |
204 | 197 | | |
205 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
206 | 204 | | |
207 | 205 | | |
208 | 206 | | |
| |||
221 | 219 | | |
222 | 220 | | |
223 | 221 | | |
| 222 | + | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| |||
0 commit comments