Investigate the possibility of avoiding stat operations on tags during manifest removal
In !39 (merged), one of the performance bottlenecks we found was a stat call being performed on tags during garbage collection, right before attempting to delete them. This happens on vacuum.RemoveManifest
(replaced by vacuum.RemoveManifests
once !39 (merged) and !24 (merged) are merged): registry/storage/vacuum.go#L58.
During the implementation of !39 (merged), it was not completely clear the benefit and the impact of this stat call. Therefore we were uncertain on whether we could avoid it or not, so the stat call remained in the source code.
We need to investigate this further and if possible implement an improvement, either by changing the scanning process or ignoring the stat call.
Please see !39 (merged) for additional context.
Edited by João Pereira