Commit 9db4f19
net: require 'dns' only once
Avoid unnecessary calls to require('dns') by caching the result of the
first one.
PR-URL: #12342
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>1 parent 94385c6 commit 9db4f19
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
948 | 949 | | |
949 | 950 | | |
950 | 951 | | |
951 | | - | |
| 952 | + | |
952 | 953 | | |
953 | 954 | | |
954 | 955 | | |
| |||
1286 | 1287 | | |
1287 | 1288 | | |
1288 | 1289 | | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
1289 | 1297 | | |
1290 | 1298 | | |
1291 | 1299 | | |
| |||
1414 | 1422 | | |
1415 | 1423 | | |
1416 | 1424 | | |
1417 | | - | |
| 1425 | + | |
1418 | 1426 | | |
1419 | 1427 | | |
1420 | 1428 | | |
| |||
0 commit comments