Commit 8d72b0d
committed
util: improve util.format performance
By manually copying arguments and breaking the try/catch out, we are
able to improve the performance of util.format by 20-100% (depending on
the types).
PR-URL: #5360
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 735e0df commit 8d72b0dCopy full SHA for 8d72b0d
File tree
Expand file treeCollapse file tree
1 file changed
+22
-13
lines changedOpen diff view settings
Filter options
- lib
Expand file treeCollapse file tree
1 file changed
+22
-13
lines changedOpen diff view settings
Collapse file
+22-13Lines changed: 22 additions & 13 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
12 | 20 | |
13 | 21 | |
14 | 22 | |
15 | | - |
| 23 | + |
16 | 24 | |
17 | | - |
| 25 | + |
18 | 26 | |
19 | 27 | |
20 | 28 | |
21 | 29 | |
22 | 30 | |
23 | 31 | |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
28 | 41 | |
29 | 42 | |
30 | 43 | |
31 | 44 | |
32 | 45 | |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
| 46 | + |
39 | 47 | |
40 | 48 | |
41 | 49 | |
42 | 50 | |
43 | 51 | |
44 | | - |
| 52 | + |
| 53 | + |
45 | 54 | |
46 | 55 | |
47 | 56 | |
|
0 commit comments