StructElementImpl must consider the possibility of multiple fields with the same name. However, we could create a specialized variant for the (common) case of having no duplicate field names. By assuming that there are no duplicate field names, we can make optimizations that will reduce the memory footprint of the struct and the computation needed for operations such as equals().
StructElementImpl
must consider the possibility of multiple fields with the same name. However, we could create a specialized variant for the (common) case of having no duplicate field names. By assuming that there are no duplicate field names, we can make optimizations that will reduce the memory footprint of the struct and the computation needed for operations such asequals()
.