starman@programming.dev to Rust@programming.devEnglish · 9 months agoA very small Rust binary indeeddarkcoding.netexternal-linkmessage-square3fedilinkarrow-up148arrow-down10file-text
arrow-up148arrow-down1external-linkA very small Rust binary indeeddarkcoding.netstarman@programming.dev to Rust@programming.devEnglish · 9 months agomessage-square3fedilinkfile-text
minus-squareleanleft@lemmy.mllinkfedilinkEnglisharrow-up1·9 months agoi think nothing can outperform simple asm for simple operations.
minus-squaresugar_in_your_tea@sh.itjust.workslinkfedilinkarrow-up4·9 months agoIDK, I’m not aware of all the fancy asm commands, but compilers are, so a good compiler will probably produce better code than me. For example, simple loops could turn into a set of SIMD instructions or be unrolled, while I’d naively do a jump loop.
i think nothing can outperform simple asm for simple operations.
IDK, I’m not aware of all the fancy asm commands, but compilers are, so a good compiler will probably produce better code than me. For example, simple loops could turn into a set of SIMD instructions or be unrolled, while I’d naively do a jump loop.