contract A {
uint8 a = 0;
}
costs 20150 + 2000 gas during creation.
as compared to
contract A {
uint a = 0; // or uint256
}
costing 5050 + 2000 gas during creation
It is odd that a variable that's taking less storage space is costing more gas. Why is that so?