-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store boxed slices instead of Vec objects in Context (#278)
We never resize the unit ranges, units, or sup units that we parsed -- they stay what they were when we instantiated the Context object. As such, we don't need to store Vec objects, which include a capacity. Do what we do for the Functions type and just store boxed slices. Doing so cuts a machine word of each, but also trims heap allocations to the minimal size required in the process. Signed-off-by: Daniel Müller <[email protected]> Co-authored-by: Daniel Müller <[email protected]>
- Loading branch information
1 parent
dda39c4
commit 390fb45
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters