Stream: git-wasmtime

Topic: wasmtime / PR #12618 perf: optimize `f32_vec_to_bytes` an...


view this post on Zulip Wasmtime GitHub notifications bot (Feb 18 2026 at 20:59):

VolodymyrBg requested wasmtime-wasi-reviewers for a review on PR #12618.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 18 2026 at 20:59):

VolodymyrBg opened PR #12618 from VolodymyrBg:fix/onnx-optimize-byte-conversion to bytecodealliance:main:

The functions created unnecessary intermediate Vec allocations - f32_vec_to_bytes allocated a Vec<[u8; 4]> then flattened it, and bytes_to_f32_vec had triple allocation with double collect.
Replaced with single-pass flat_map and simplified map with single collect, matching the pattern already used in winml.rs.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 18 2026 at 21:08):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 18 2026 at 21:08):

alexcrichton has enabled auto merge for PR #12618.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 18 2026 at 21:12):

alexcrichton added PR #12618 perf: optimize f32_vec_to_bytes and bytes_to_f32_vec to the merge queue

view this post on Zulip Wasmtime GitHub notifications bot (Feb 18 2026 at 21:41):

alexcrichton removed PR #12618 perf: optimize f32_vec_to_bytes and bytes_to_f32_vec from the merge queue

view this post on Zulip Wasmtime GitHub notifications bot (Feb 18 2026 at 21:41):

alexcrichton merged PR #12618.


Last updated: Feb 24 2026 at 04:36 UTC