Repository navigation
Commit b4e6d60
committed
tsc/checker: fast-path compareNodes for identical AST parent containers and use cmp.Compare
Fast-path compareNodes when two AST nodes share the same direct parent container (n1.Parent == n2.Parent),
avoiding full AST traversals to root SourceFiles.
Use cmp.Compare for 64-bit SymbolId fallback comparison in compareSymbolsWorker to avoid
potential integer overflow.1 parent 0823744 commit b4e6d60
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
| 362 | + | |
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
| 389 | + | |
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
402 | 405 | | |
403 | 406 | | |
404 | 407 | | |
| |||
0 commit comments