char faster than int?
Scott M
Posts: 43
I need to squeeze a few more drops of blood^H^H^H^H^H performance from my Javelins. Does anyone know if operations on char (unsigned 8 bit) are faster than operations on int (signed 16 bit) in this implementation? Most operations are stores and compares, but there is some adding and subtracting.
I can "try and see", but it means mucking a lot of code and I'm hoping someone knows definitively. Thanks.
·
I can "try and see", but it means mucking a lot of code and I'm hoping someone knows definitively. Thanks.
·
Comments
of an array. Do that for types byte, char, short and int and time
the operations. That should give you the answer.
I expect the byte/char to be slightly faster because only 1 byte
needs to stored/retrieved from the sram for each element.
regards peter