Comparison Datatypes Sizes
One interesting thing about set
is that you can see the jumps in
storage used as they “fill up”.

Note that making the list of booleans (“boolean array”) takes up the same amount of space as using ints. No “packing” happens.
