6 ms·
The problem is that if you are bitcasting, say, from a memory buffer coming from a read() call it is very hard for the compiler to prove that bitcasted copy is
by gpderetta 5y ago
The problem is that if you are bitcasting, say, from a memory buffer coming from a read() call it is very hard for the compiler to prove that bitcasted copy is the only live one, especially across function calls.
For small objects bitcast works just fine because the result end up in registers were you would have loaded the original objects anyway.