// locality, but it comes at the expense of wasted space for some types
// (consider uint8 key, uint64 element). Consider placing all keys
// together in these cases to save space.
- //
- // TODO(prattmic): Support indirect keys/values? This means storing
- // keys/values as pointers rather than inline in the slot. This avoid
- // bloating the table size if either type is very large.
groups groupsReference
}
func newTable(typ *abi.SwissMapType, capacity uint64, index int, localDepth uint8) *table {
if capacity < abi.SwissMapGroupSlots {
- // TODO: temporary until we have a real map type.
capacity = abi.SwissMapGroupSlots
}