Index creation can be very expensive for large CARs and it'd be nice to be able to track (and in the CLI emit) progress as it's being generated.
If
|
func LoadIndex(idx index.Index, r io.Reader, opts ...Option) error { |
took a context I'd probably recommend attaching the tracker there (and probably also allowing the caller to bail via context cancellation). We could potentially put it into the Options struct, but I don't know if that fits the model of what that struct is aiming for.
Any suggestions on acceptable API modifications (or new function introductions) here?
Index creation can be very expensive for large CARs and it'd be nice to be able to track (and in the CLI emit) progress as it's being generated.
If
go-car/v2/index_gen.go
Line 43 in e48b3f1
Any suggestions on acceptable API modifications (or new function introductions) here?