Memory comparison between different uses of Hash, Struct and Class