4 ms·
It's the same C code doing IP, going through the same steps and the same number of steps, whether the underlying machine is little- or big-endian. So if you're
by smorrow 11y ago
It's the same C code doing IP, going through the same steps and the same number of steps, whether the underlying machine is little- or big-endian. So if you're saying about wasted cycles...
- JoeAltmaier 11y agoThe waste is every little-endian machine (almost all machines) converting every packet to big-endian for 'the wire', then converting back again when received. Its all a pointless self-flagellation.
- smorrow 11y agoAny sensible code is going to have to do that stuff whether the machine's endianness matches IP's or not, though. It happens on BE boxes too. It's either that or write completely different code for different CPUs.
- JoeAltmaier 11y agoThe OPs point was, there are essentially no more BE boxes.
- limeyx 11y agoNot for networking...ntohl/htonl and friends are no-ops (macros) on BE machines ... zero overhead