Commit 93923d2
authored
Use fewer allocations when building descriptors in the linker package (#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).1 parent 63736ac commit 93923d2
File tree
5 files changed
+299
-127
lines changed- linker
5 files changed
+299
-127
lines changed
0 commit comments