Re: [LAD] Integer performance

From: Florian Weimer <fw@email-addr-hidden>
Date: Sun May 03 2015 - 22:36:25 EEST

* Will Godfrey:

> Just a curious thought...
>
> If you are using only small values is there really any benefit in
> using chars and shorts rather than just using integers everywhere
> and letting the compiler sort it out?

Many languages do not actually support arithmetic on chars and shorts,
but promote them to ints first.

It is usually beneficial to use the smallest possible data type for
arrays because it cuts down memory use and increases the number of
array elements which fit into the CPU caches.
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Mon May 4 00:15:01 2015

This archive was generated by hypermail 2.1.8 : Mon May 04 2015 - 00:15:01 EEST