summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authormergify[bot]2022-03-30 23:58:32 +0000
committerGitHub2022-03-30 23:58:32 +0000
commit157d5c3e37058286539867ca9a33b8bc1c6e43e3 (patch)
tree2c27fb55e08fef316bdec1a312d917515d822760 /docs
parent4e8f362c399f85b93bce4175562670242d8411b1 (diff)
Use var List instead of ListBuffer to save memory (#2465) (#2467)
This reduces memory use of every HasId by 64 bytes. Every instance of HasId (including all Data) had 2 ListBuffer vals for recording post-naming hooks, yet this feature is almost never used. These are now vars of type List which allows the common case of Nil to add no incremental memory use per instance of HasId. (cherry picked from commit cf410180ac8de854d8d7ecf89f4813ac8541dcdb) Co-authored-by: Jack Koenig <koenig@sifive.com>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions