lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


----- Original Message -----
From: steve donovan
Date: 12/17/2011 9:20 AM
Well, I'm happy to be corrected on this - I guess the extra byte
swapping is pretty fast.  It's certainly fast enough for Mike Pall and
his endian-independent format.
Certainly, it is best to write out the correct endianness for you platform to begin with, as load times are king on game consoles. But when it isn't possible to do so (or, more simply, just during development), the automatic endian swap is nice.

-Josh

[1] https://github.com/jjensen/luaplus51-all/blob/master/Src/LuaPlus/src/ldump.c