diff options
| author | Jack Koenig | 2021-08-31 14:10:29 -0700 |
|---|---|---|
| committer | Jack Koenig | 2021-12-01 11:40:52 -0800 |
| commit | 17250fba841ae3129dc798c0bc48d10200be18ae (patch) | |
| tree | 37b93b1c487f78e39acd17f94faf5f5c3b24b9d8 /scripts | |
| parent | 64a0ca2512199c55e51ec90dbd3ec7d563472255 (diff) | |
Use ANTLR Listener to save memory during parsing
The ANTLR-generated concrete syntax tree (CST) takes up much more memory
than the parsed .fir file. By using a Listener, we can construct the
FIRRTL AST live with CST construction and null out the CST as we consume
pieces of it. Not only does this improve performance, it drastically
reduces max memory use for the parser.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
