3 ms·
What a weird post. Lea became very slow in recent Intel cpus? News to me. Hard to imagine them shipping such a cpu considering x86 compilers pattern match to L
by pizlonator 3y ago
What a weird post.
Lea became very slow in recent Intel cpus? News to me. Hard to imagine them shipping such a cpu considering x86 compilers pattern match to Lea hella aggressively.
Weird to show the more complex arithmetic codegen as a downside of not allocating int boxes. Having to shift or add (or both) a lot is way cheaper than asking the GC for memory or dereferencing a pointer to a box.
- DonPellegrino 3y ago> Lea became very slow in recent Intel cpus? News to me. Article is from 2014. The "recent" CPUs they are discussing is the Sandy Bridge architecture launched in 2011. See this discussion about the performance impact of LEA in Sandy Bridge: https://github.com/ocaml/ocaml/issues/6125#issuecomment-472988968 https://github.com/ocaml/ocaml/issues/6125#issuecomment-4729...