Skip to content

Small simplifications, use associated consts#108

Merged
bluss merged 3 commits into
masterfrom
reduce
Jul 14, 2026
Merged

Small simplifications, use associated consts#108
bluss merged 3 commits into
masterfrom
reduce

Conversation

@bluss

@bluss bluss commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Use associated consts where possible and desireable, also reduce number of monomorphizations in one instance (from 8 to 6 on x86-64).

For those interested, MR and NR need to stay associated types, because we can't do this dispatch using associated constants (not in any stable Rust version):

// use Self::MRTy to specialize packing per lane size
pack::<Self::MRTy, _>(kc, mc, pack_buf, a, rsa, csa)

@bluss bluss merged commit 3be284c into master Jul 14, 2026
17 checks passed
@bluss bluss deleted the reduce branch July 14, 2026 14:35
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.

1 participant