Commit 0d17e46
authored
opt: Optimize the logic for evaluating expressions in the Console. (#25)
Instead of maintaining a list of property names in multiApps, change every identifier expression to:
"(this.identifier ?? this.multiApps[this.currentDebugAppId ?? this.currentAppId]?.identifier)".
This way, we can eliminate the need for string comparisons.1 parent 465e604 commit 0d17e46
File tree
1 file changed
+13
-38
lines changed- packages/devtools-frontend-lynx/front_end/core/sdk
1 file changed
+13
-38
lines changedLines changed: 13 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | 176 | | |
209 | 177 | | |
210 | 178 | | |
211 | 179 | | |
212 | 180 | | |
213 | 181 | | |
214 | 182 | | |
215 | | - | |
216 | | - | |
| 183 | + | |
| 184 | + | |
217 | 185 | | |
218 | 186 | | |
219 | | - | |
| 187 | + | |
220 | 188 | | |
221 | 189 | | |
222 | | - | |
| 190 | + | |
223 | 191 | | |
224 | 192 | | |
225 | | - | |
226 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
227 | 202 | | |
228 | 203 | | |
229 | 204 | | |
| |||
0 commit comments