compiler injects a dummy field to an empty struct, does it have any storage cost?
struct EmptyProd {}
Compiled to
struct EmtpyProp {
dummy_field: bool,
}
compiler injects a dummy field to an empty struct, does it have any storage cost?
struct EmptyProd {}
Compiled to
struct EmtpyProp {
dummy_field: bool,
}
@shiqicao There’s a cost for empty structs (the cost of 1 byte).
any plan to make it zero cost?