Commit 9a07490
Greedily load the handler module. (#1)
It turns out that at cold start time, the CPU isn't so throttled. So that's
the time to do big jobs like instrumenting crazy dependencies. So we should
try to load all our user's deps up front, before their first invocation.
Plus, the lazy-load strategy would have them paying for DB connection setup
and stuff on first invoke, which is bad.1 parent 9bd0144 commit 9a07490
1 file changed
+7
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
| |||
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 34 | | |
43 | 35 | | |
44 | 36 | | |
| |||
89 | 81 | | |
90 | 82 | | |
91 | 83 | | |
92 | | - | |
93 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
94 | 87 | | |
95 | | - | |
96 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
97 | 92 | | |
98 | | - | |
0 commit comments