[Python-ideas] Do we need non-heap types any more? (Was: Implicit submodule imports)

Sturla Molden sturla.molden at gmail.com
Sun Sep 28 21:55:29 CEST 2014


Andrew Barnert <abarnert at yahoo.com.dmarc.invalid>
wrote:

> On what modern CPU does unlikely have any effect at all? x86 has an
> opcode to provide static branch prediction hints, but it's been a no-op
> since Core 2; ARM doesn't have one; I don't know about other instruction
> sets but I'd be surprised if they did.

AFAIK, the branch prediction is somewhat controlled by the order of
instructions. And this compiler hint allows the compiler to restructure the
code to better exploit this behavior. It does not result in specific
opcodes being inserted.

Sturla



More information about the Python-ideas mailing list