RemoveAllSnapshots has O(n²) duplicate detection for snapshot IDs #12
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In
snapshot.goRemoveAllSnapshots(), duplicate snapshot IDs are detected with a linear scan:This is O(n²) overall. Should use a
map[string]boolfor O(1) lookups. Same pattern exists inPruneBlobs().Ref: parent issue #1