stackitem: simplify extracting value from map

Going through interfaces doesn't make it faster.
This commit is contained in:
Roman Khimov 2021-11-30 22:37:56 +03:00
parent af8a4da6d9
commit decff2bfb9

View file

@ -152,7 +152,7 @@ func (w *serContext) serialize(item Item) error {
case *Map:
w.seen[item] = sliceNoPointer{}
elems := t.Value().([]MapElement)
elems := t.value
w.data = append(w.data, byte(MapT))
w.appendVarUint(uint64(len(elems)))
for i := range elems {