update go-structr -> v0.8.2 which includes some minor memory usage improvements (#2904)

This commit is contained in:
kim 2024-05-06 19:44:22 +00:00 committed by GitHub
commit 3554991444
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 29 additions and 5 deletions

View file

@ -51,8 +51,12 @@ func (i *indexed_item) drop_index(entry *index_entry) {
continue
}
// Unset tptr value to
// ensure GC can take it.
i.indexed[x] = nil
// Move all index entries down + reslice.
copy(i.indexed[x:], i.indexed[x+1:])
_ = copy(i.indexed[x:], i.indexed[x+1:])
i.indexed = i.indexed[:len(i.indexed)-1]
break
}