Skip to content

Optimize swizzle_dyn on AVX-512 VBMI - #545

Merged
programmerjake merged 1 commit into
rust-lang:masterfrom
Shnatsel:swizzle-dyn-avx512
Jul 30, 2026
Merged

Optimize swizzle_dyn on AVX-512 VBMI#545
programmerjake merged 1 commit into
rust-lang:masterfrom
Shnatsel:swizzle-dyn-avx512

Conversation

@Shnatsel

@Shnatsel Shnatsel commented Jul 30, 2026

Copy link
Copy Markdown
Member

Use a faster formulation of swizzle_dyn_precise on AVX-512 VBMI.

Doubles the throughput on both Ice Lake and Zen4. Improves latency on Ice Lake from 23 to 13 cycles, on Zen4 from 17 to 15 cycles.

Improves encoding performance of a toy base64 implementation on Zen4 by -20% (time) +25% (throughput), no change on decoding benchmark.

Disassembly and measurements done on linebender/fearless_simd#276 similarly to #542 and #543

                                                                   Doubles the throughput on both Ice Lake and Zen4.
                                                                   Improves latency on Ice Lake from 23 to 13 cycles, on Zen4 from 17 to 15 cycles.

                                                                   Improves encoding performance of a toy base64 implementation on Zen4 by -20% (time) +25% (throughput), no change on decoding benchmark
@programmerjake
programmerjake merged commit e9c1619 into rust-lang:master Jul 30, 2026
61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants