There's no reason to suspect that math with 8-bit values would be
slower than 64-bit values. Both are "native" to the processor. Also,
unless you have a lot of them packed into an array, there's no reason
to believe it would use noticeably less memory. Before you optimize
your program by
worrying about such details, you may need to better explain your
problem space.

On Sun, Mar 30, 2014 at 2:27 AM, Freddy Chua <[email protected]> wrote:
> Hi,
>
> I have a question. Suppose the data I have are only small integer values in
> the range of 1-10. Should I use Int64 or Int8. Using Int64 would be
> consistent with my system word size and would likely be faster. But using
> Int8 would definitely save more memory.
>
> So, which should I use?

Reply via email to