mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
Intitialise CodeSection with just the right capacity
This commit is contained in:
parent
7fb09f5768
commit
5bfc0093ec
2 changed files with 3 additions and 7 deletions
|
@ -92,7 +92,9 @@ impl<'a> WasmBackend<'a> {
|
|||
export: ExportSection { entries: exports },
|
||||
start: (),
|
||||
element: (),
|
||||
code: CodeSection::new(arena),
|
||||
code: CodeSection {
|
||||
code_builders: Vec::with_capacity_in(num_procs, arena),
|
||||
},
|
||||
data: DataSection {
|
||||
segments: bumpalo::vec![in arena; const_segment],
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue