Arpad Borsos
5937ffdf25
Add constructor functions for {Symbol,Node}Links ( #36845 )
...
Using a constructor function like this can help node better optimize
object allocation. This improves memory usage when compiling
`src/compiler` from **277M** to **270M**, a nice ~3% win.
2020-03-11 08:40:51 -07:00
Arpad Borsos
391a3c8791
Separate Tokens and Identifiers from other Nodes
...
With some further optimization to their properties, this shrinks the
objects by quite a bit.
2019-09-14 10:27:51 +02:00
Arpad Borsos
72c0961071
Force a gc before printing diagnostics
...
Use this together with `node --expose-gc` to get more stable results
2019-09-14 04:10:54 +02:00
Arpad Borsos
a8d04b2db9
Fix Identifiers: NaN diagnostic when having JSON SourceFiles
...
This makes sure that the `identifierCount` and `nodeCount` properties
are always initialized for `SourceFile` objects.
2019-09-12 21:10:38 +02:00