Skip to content

Benchmarks+results#71

Merged
acandershock merged 4 commits intomainfrom
tatiana-bench
Mar 28, 2026
Merged

Benchmarks+results#71
acandershock merged 4 commits intomainfrom
tatiana-bench

Conversation

@tdehoff
Copy link
Copy Markdown
Owner

@tdehoff tdehoff commented Mar 28, 2026

No description provided.

@tdehoff tdehoff requested a review from acandershock March 28, 2026 17:49
@acandershock acandershock merged commit 336784d into main Mar 28, 2026
1 check passed
@trojanezra-del
Copy link
Copy Markdown

UnsafeNicheable implementation on MojoBLAS for Memory Utilization.

By marking a custom type as UnsafeNicheable, you are identifying these "empty spaces" in memory so the compiler can store other data—like an Optional flag—directly inside the object instead of adding extra padding.
How it improves memory utilization:
Struct Compaction: It allows complex types to be stored in fewer bytes by "hiding" state information in unused bit patterns.
Reducing Padding: Compilers normally add "padding" to align data in memory. Niche optimization allows the compiler to reclaim some of that lost space.
Cache Efficiency: While it doesn't directly speed up math, a smaller memory footprint means more data fits into your CPU's fast cache at once, which can lead to indirect speed gains for large-scale data processing.

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.

3 participants