Skip to content

Commit

Permalink
Use fewer allocations when building descriptors in the linker package (
Browse files Browse the repository at this point in the history
…#290)

This uses many fewer, larger allocations, to allocate all of the descendant
descriptors in a file in as few chunks as possible (by allocating slices of
flattened structs).

This change also eliminates many allocations related to computing
fully-qualified-names by moving the construction of the descriptor hierarchy
(which includes computing and storing full names) to *before* we import
the names into the symbol table (which previously had to compute/allocate
the full names twice: once when checking for collisions, and again in a
second pass to store the names when no collisions were found).
  • Loading branch information
jhump authored Apr 22, 2024
1 parent 63736ac commit 93923d2
Show file tree
Hide file tree
Showing 5 changed files with 299 additions and 127 deletions.
Loading

0 comments on commit 93923d2

Please sign in to comment.