137 ms·
I think that skrebel is trying to say that doing as the article suggests comes with an unnecessary performance penalty hit if your CPU has the same endianness a
by demallien 15y ago
I think that skrebel is trying to say that doing as the article suggests comes with an unnecessary performance penalty hit if your CPU has the same endianness as the data stream.
- fpgeek 15y agoWhy should there be a any performance penalty? A good compiler (and I've worked with at least one that could) would know the machine's endianness and could optimize away that sequence of selections, shifts and ors when it isn't needed.
- alexchamberlain 15y agoOk, but the performance penalty is then at compile time...
- alexchamberlain 15y agoLots of downvotes... Do you disagree? If so, why? Or do you think it is insignificant? I've sat and watch C++ compile for 5 hours... Compile time performance is important too!