Lilly
10/05/2021, 6:33 PMByte/UByte
(unsigned types partial stable since v1.5) instead of Int
? I deal most of the time with values in the range of 0-255. I'm also thinking about the architecture of the cpu (cpu natively works better with Int
while there might be extra steps to convert from Byte
to Int
???) but tbh, I'm not so deep in this topic. This question might be a no brainer but anyway I'm curious about the pros and cons if there are any.ephemient
10/05/2021, 7:49 PMephemient
10/05/2021, 7:50 PMephemient
10/05/2021, 7:51 PMoperator fun Byte.plus(Byte): Int
, operator fun UByte.plus(UByte): UInt
ephemient
10/05/2021, 7:53 PMLilly
10/05/2021, 8:07 PM