「ZigがRustを上回るとき - メモリ効率の高い列挙型配列」という挑戦的なタイトル。Rustで効率的な汎用データ構造の記述は難しい。もしかして数年後のLinuxにZig導入とか?

asiamothasiamoth のブックマーク 2023/09/19 15:08

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

When Zig outshines Rust - Memory efficient enum arrays

    Enums (or tagged unions) whose variants vary in size are prone to significant memory fragmentation in Rust. That's because we need to allocate enough data to accommodate the largest variant. Figure...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう