Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Replace Vec with Box in br table #154

Merged
merged 2 commits into from
Jan 22, 2018
Merged

Replace Vec with Box in br table #154

merged 2 commits into from
Jan 22, 2018

Conversation

NikVolf
Copy link
Contributor

@NikVolf NikVolf commented Jan 22, 2018

should reduce size of each opcode by usize

@pepyakin
Copy link
Contributor

Nice! Should kinda ease the #135 issue.

I'm wondering is it feasible to add a test so we don't regress in size of Opcode struct?

@NikVolf NikVolf merged commit bf66aa6 into master Jan 22, 2018
@NikVolf NikVolf deleted the vec-to-box branch January 22, 2018 14:30
sunfishcode added a commit to sunfishcode/wasmparser.rs that referenced this pull request Jan 22, 2018
Boxed slices aren't resizable, so they don't contain a capacity field,
so they're smaller than Vecs.

Inspired by paritytech/parity-wasm#154.
sunfishcode added a commit to sunfishcode/wasmparser.rs that referenced this pull request Jan 22, 2018
Boxed slices aren't resizable, so they don't contain a capacity field,
so they're smaller than Vecs. This change shrinks ParserState from 64
bytes to 56 bytes (on x64).

Inspired by paritytech/parity-wasm#154.
sunfishcode added a commit to sunfishcode/wasmparser.rs that referenced this pull request Sep 27, 2018
Boxed slices aren't resizable, so they don't contain a capacity field,
so they're smaller than Vecs. This change shrinks ParserState from 64
bytes to 56 bytes (on x64).

Inspired by paritytech/parity-wasm#154.
sunfishcode added a commit to sunfishcode/wasmparser.rs that referenced this pull request Sep 28, 2018
Boxed slices aren't resizable, so they don't contain a capacity field,
so they're smaller than Vecs. This change shrinks ParserState from 64
bytes to 56 bytes (on x64).

Inspired by paritytech/parity-wasm#154.
yurydelendik pushed a commit to sunfishcode/wasmparser.rs that referenced this pull request Sep 28, 2018
Boxed slices aren't resizable, so they don't contain a capacity field,
so they're smaller than Vecs. This change shrinks ParserState from 64
bytes to 56 bytes (on x64).

Inspired by paritytech/parity-wasm#154.
yurydelendik pushed a commit to bytecodealliance/wasmparser that referenced this pull request Sep 28, 2018
Boxed slices aren't resizable, so they don't contain a capacity field,
so they're smaller than Vecs. This change shrinks ParserState from 64
bytes to 56 bytes (on x64).

Inspired by paritytech/parity-wasm#154.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants