Commit b491eab
process: improve queueMicrotask performance
Optimize the hot code paths of queueMicrotask by
not creating unnecessary objects, not looking up
properties on frozen primordials, etc.
PR-URL: #28093
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>1 parent 3f1787b commit b491eabCopy full SHA for b491eab
File tree
Expand file treeCollapse file tree
2 files changed
+18
-16
lines changedOpen diff view settings
Filter options
- lib
- internal/process
Expand file treeCollapse file tree
2 files changed
+18
-16
lines changedOpen diff view settings
Collapse file
+15-11Lines changed: 15 additions & 11 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
134 | 134 | |
135 | 135 | |
136 | 136 | |
137 | | - |
138 | | - |
139 | | - |
140 | | - |
| 137 | + |
| 138 | + |
| 139 | + |
| 140 | + |
| 141 | + |
| 142 | + |
141 | 143 | |
142 | 144 | |
143 | 145 | |
144 | 146 | |
145 | | - |
146 | 147 | |
147 | 148 | |
148 | 149 | |
| ||
151 | 152 | |
152 | 153 | |
153 | 154 | |
154 | | - |
155 | | - |
156 | | - |
157 | | - |
158 | 155 | |
159 | 156 | |
160 | 157 | |
161 | 158 | |
162 | | - |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
163 | 163 | |
164 | 164 | |
165 | 165 | |
| ||
168 | 168 | |
169 | 169 | |
170 | 170 | |
| 171 | + |
| 172 | + |
171 | 173 | |
172 | 174 | |
173 | 175 | |
174 | 176 | |
175 | 177 | |
176 | 178 | |
177 | 179 | |
178 | | - |
| 180 | + |
| 181 | + |
| 182 | + |
179 | 183 | |
180 | 184 | |
181 | 185 | |
|
Collapse file
lib/internal/process/task_queues.js
Copy file name to clipboardExpand all lines: lib/internal/process/task_queues.js+3-5Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
128 | 128 | |
129 | 129 | |
130 | 130 | |
| 131 | + |
131 | 132 | |
132 | 133 | |
133 | | - |
| 134 | + |
134 | 135 | |
135 | 136 | |
136 | | - |
137 | | - |
138 | | - |
139 | | - |
| 137 | + |
140 | 138 | |
141 | 139 | |
142 | 140 | |
|
0 commit comments