Unverified Commit 157d5c3e authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub
Browse files

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 cf410180

)

Co-authored-by: default avatarJack Koenig <koenig@sifive.com>
parent 4e8f362c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment