What do you think about making enum types have only the size needed for the number of constants held? If an enum type has 256 constants or less, for example, it needs only one byte. If it has between 257 and 65536 constants, in the other hand, it needs two bytes.
- Size of enum Alexandre Almeida
- Re: Size of enum David Brown
- Re: Size of enum Jonathan Wakely
- Re: Size of enum James Dennett
- RE: Size of enum Alexandre Almeida
- Re: Size of enum Andrew Pinski