For your given example, both will require two hashes, each with 2 of the 8 slots used. As near as make no difference, the memory usage will de identical for both.
However, lets say you have 10 instances of a class that has 2 attributes:
In reply to Re^3: Size of inside out object
by BrowserUk
in thread Size of inside out object
by cheekuperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |