5 ms·
> What a colossal waste How expensive do you think endianness-swapping is?
by wyager 12y ago
> What a colossal waste
How expensive do you think endianness-swapping is?
- jcranmer 12y ago<http://www.agner.org/optimize/instruction_tables.pdf> http://www.agner.org/optimize/instruction_tables.pdf> About 1 clock cycle per word.
- jdmichal 12y agoFixed link: http://www.agner.org/optimize/instruction_tables.pdf http://www.agner.org/optimize/instruction_tables.pdf
- curun1r 12y agoMiniscule multiplied by massive.
- JoeAltmaier 12y agoExpensive in having to do it at all - code complexity, confusion between HBO and NBO buffers, heck the fact that nobody can even receive an opaque packet at all! You have to know every field to correctly normalize it on receive. This impacts code at every layer of the network.