mirror of
https://github.com/minio/minio.git
synced 2025-11-11 06:20:14 -05:00
Updated version of klauspost/reedsolomon using proper AVX2 instructions as well a providing support for Cauchy matrices. (#5215)
This commit is contained in:
committed by
Harshavardhana
parent
c9e00ae0a5
commit
6e6aeb6a9e
15
vendor/github.com/klauspost/reedsolomon/options.go
generated
vendored
15
vendor/github.com/klauspost/reedsolomon/options.go
generated
vendored
@@ -14,10 +14,11 @@ type options struct {
|
||||
minSplitSize int
|
||||
useAVX2, useSSSE3, useSSE2 bool
|
||||
usePAR1Matrix bool
|
||||
useCauchy bool
|
||||
}
|
||||
|
||||
var defaultOptions = options{
|
||||
maxGoroutines: 50,
|
||||
maxGoroutines: 384,
|
||||
minSplitSize: 512,
|
||||
}
|
||||
|
||||
@@ -81,5 +82,17 @@ func withSSE2(enabled bool) Option {
|
||||
func WithPAR1Matrix() Option {
|
||||
return func(o *options) {
|
||||
o.usePAR1Matrix = true
|
||||
o.useCauchy = false
|
||||
}
|
||||
}
|
||||
|
||||
// WithCauchyMatrix will make the encoder build a Cauchy style matrix.
|
||||
// The output of this is not compatible with the standard output.
|
||||
// A Cauchy matrix is faster to generate. This does not affect data throughput,
|
||||
// but will result in slightly faster start-up time.
|
||||
func WithCauchyMatrix() Option {
|
||||
return func(o *options) {
|
||||
o.useCauchy = true
|
||||
o.usePAR1Matrix = false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user