タグ

ブックマーク / medium.com/@robertgrosse (1)

  • How copying an int made my code 11 times faster

    Recently, after refactoring some Rust code, I noticed that it had suddenly become four times slower. However, the strange part is that I didn’t even touch the part of the code that became slower. Furthermore, it was still slower after commenting out the changes. Curious, I decided to investigate further. The first step was to use git diff to display all changes since the previous commit, which was

    yhara
    yhara 2017/02/23
    Rustレベルでは渡した引数を変更しないことを知っているけど、LLVMに落ちたときにその情報が抜けるので最適化されない、みたいな?(ちゃんと読んでないけど)
  • 1