16b7901fde
This code is essentially replacement for eestream.CalcPieceSize. To call eestream.CalcPieceSize we need eestream.RedundancyStrategy which is not trivial to get as it requires infectious.FEC. For example infectious.FEC creation is visible on GE loop observer CPU profile because we were doing this for each segment in DB. New method was added to storj.Redundancy and here we are just wiring it with metabase Segment. BenchmarkSegmentPieceSize BenchmarkSegmentPieceSize/eestream.CalcPieceSize BenchmarkSegmentPieceSize/eestream.CalcPieceSize-8 5822 189189 ns/op 9776 B/op 8 allocs/op BenchmarkSegmentPieceSize/segment.PieceSize BenchmarkSegmentPieceSize/segment.PieceSize-8 94721329 11.49 ns/op 0 B/op 0 allocs/op Change-Id: I5a8b4237aedd1424c54ed0af448061a236b00295
149 lines
7.4 KiB
Modula-2
149 lines
7.4 KiB
Modula-2
module storj.io/storj/testsuite/storjscan
|
|
|
|
go 1.18
|
|
|
|
replace storj.io/storj => ../../
|
|
|
|
require (
|
|
github.com/stretchr/testify v1.8.0
|
|
github.com/zeebo/errs v1.3.0
|
|
go.uber.org/zap v1.21.0
|
|
golang.org/x/sync v0.1.0
|
|
storj.io/common v0.0.0-20230221110830-7591b205266e
|
|
storj.io/private v0.0.0-20230123202745-d3e63b336444
|
|
storj.io/storj v1.63.1
|
|
storj.io/storjscan v0.0.0-20220926140643-1623c3b391b0
|
|
storj.io/uplink v1.10.1-0.20230217232046-0618502c1396
|
|
)
|
|
|
|
require (
|
|
github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6 // indirect
|
|
github.com/VictoriaMetrics/fastcache v1.6.0 // indirect
|
|
github.com/alicebob/gopher-json v0.0.0-20200520072559-a9ecdc9d1d3a // indirect
|
|
github.com/alicebob/miniredis/v2 v2.13.3 // indirect
|
|
github.com/apache/thrift v0.12.0 // indirect
|
|
github.com/benbjohnson/clock v1.1.0 // indirect
|
|
github.com/blang/semver v3.5.1+incompatible // indirect
|
|
github.com/bmkessler/fastdiv v0.0.0-20190227075523-41d5178f2044 // indirect
|
|
github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect
|
|
github.com/btcsuite/btcd v0.21.0-beta // indirect
|
|
github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce // indirect
|
|
github.com/calebcase/tmpfile v1.0.3 // indirect
|
|
github.com/cespare/xxhash/v2 v2.1.2 // indirect
|
|
github.com/cloudfoundry/gosigar v1.1.0 // indirect
|
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
|
github.com/deckarep/golang-set v1.8.0 // indirect
|
|
github.com/deepmap/oapi-codegen v1.8.2 // indirect
|
|
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
|
|
github.com/edsrzf/mmap-go v1.0.0 // indirect
|
|
github.com/ethereum/go-ethereum v1.10.16 // indirect
|
|
github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5 // indirect
|
|
github.com/flynn/noise v1.0.0 // indirect
|
|
github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff // indirect
|
|
github.com/go-oauth2/oauth2/v4 v4.4.2 // indirect
|
|
github.com/go-ole/go-ole v1.2.1 // indirect
|
|
github.com/go-redis/redis/v8 v8.11.5 // indirect
|
|
github.com/go-stack/stack v1.8.0 // indirect
|
|
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 // indirect
|
|
github.com/gogo/protobuf v1.3.2 // indirect
|
|
github.com/golang-jwt/jwt v3.2.1+incompatible // indirect
|
|
github.com/golang/mock v1.6.0 // indirect
|
|
github.com/golang/snappy v0.0.4 // indirect
|
|
github.com/google/go-cmp v0.5.8 // indirect
|
|
github.com/google/pprof v0.0.0-20211108044417-e9b028704de0 // indirect
|
|
github.com/google/uuid v1.1.5 // indirect
|
|
github.com/gorilla/mux v1.8.0 // indirect
|
|
github.com/gorilla/schema v1.2.0 // indirect
|
|
github.com/gorilla/websocket v1.4.2 // indirect
|
|
github.com/graph-gophers/graphql-go v1.3.0 // indirect
|
|
github.com/graphql-go/graphql v0.7.9 // indirect
|
|
github.com/hashicorp/go-bexpr v0.1.10 // indirect
|
|
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect
|
|
github.com/holiman/bloomfilter/v2 v2.0.3 // indirect
|
|
github.com/holiman/uint256 v1.2.0 // indirect
|
|
github.com/huin/goupnp v1.0.2 // indirect
|
|
github.com/inconshreveable/mousetrap v1.0.0 // indirect
|
|
github.com/influxdata/influxdb v1.8.3 // indirect
|
|
github.com/influxdata/influxdb-client-go/v2 v2.4.0 // indirect
|
|
github.com/influxdata/line-protocol v0.0.0-20210311194329-9aa0e372d097 // indirect
|
|
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
|
|
github.com/jackc/pgconn v1.11.0 // indirect
|
|
github.com/jackc/pgerrcode v0.0.0-20201024163028-a0d42d470451 // indirect
|
|
github.com/jackc/pgio v1.0.0 // indirect
|
|
github.com/jackc/pgpassfile v1.0.0 // indirect
|
|
github.com/jackc/pgproto3/v2 v2.2.0 // indirect
|
|
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect
|
|
github.com/jackc/pgtype v1.10.0 // indirect
|
|
github.com/jackc/pgx/v4 v4.15.0 // indirect
|
|
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
|
|
github.com/jtolds/monkit-hw/v2 v2.0.0-20191108235325-141a0da276b3 // indirect
|
|
github.com/jtolds/tracetagger/v2 v2.0.0-rc5 // indirect
|
|
github.com/jtolio/eventkit v0.0.0-20221007130042-690145affff8 // indirect
|
|
github.com/jtolio/noiseconn v0.0.0-20230111204749-d7ec1a08b0b8 // indirect
|
|
github.com/klauspost/cpuid/v2 v2.0.12 // indirect
|
|
github.com/magefile/mage v1.13.0 // indirect
|
|
github.com/mattn/go-colorable v0.1.8 // indirect
|
|
github.com/mattn/go-isatty v0.0.12 // indirect
|
|
github.com/mattn/go-runewidth v0.0.9 // indirect
|
|
github.com/mattn/go-sqlite3 v1.14.12 // indirect
|
|
github.com/miguelmota/go-ethereum-hdwallet v0.1.1 // indirect
|
|
github.com/mitchellh/mapstructure v1.4.1 // indirect
|
|
github.com/mitchellh/pointerstructure v1.2.0 // indirect
|
|
github.com/olekukonko/tablewriter v0.0.5 // indirect
|
|
github.com/onsi/ginkgo/v2 v2.2.0 // indirect
|
|
github.com/opentracing/opentracing-go v1.1.0 // indirect
|
|
github.com/oschwald/maxminddb-golang v1.8.0 // indirect
|
|
github.com/peterh/liner v1.1.1-0.20190123174540-a2c9a5303de7 // indirect
|
|
github.com/pkg/errors v0.9.1 // indirect
|
|
github.com/pmezard/go-difflib v1.0.0 // indirect
|
|
github.com/pquerna/otp v1.3.0 // indirect
|
|
github.com/prometheus/tsdb v0.7.1 // indirect
|
|
github.com/quic-go/qtls-go1-18 v0.2.0 // indirect
|
|
github.com/quic-go/qtls-go1-19 v0.2.0 // indirect
|
|
github.com/quic-go/qtls-go1-20 v0.1.0 // indirect
|
|
github.com/quic-go/quic-go v0.32.0 // indirect
|
|
github.com/rjeczalik/notify v0.9.1 // indirect
|
|
github.com/rs/cors v1.7.0 // indirect
|
|
github.com/segmentio/backo-go v0.0.0-20200129164019-23eae7c10bd3 // indirect
|
|
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
|
|
github.com/shopspring/decimal v1.2.0 // indirect
|
|
github.com/spacemonkeygo/monkit/v3 v3.0.19 // indirect
|
|
github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572 // indirect
|
|
github.com/spf13/cobra v1.1.3 // indirect
|
|
github.com/spf13/pflag v1.0.5 // indirect
|
|
github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4 // indirect
|
|
github.com/stripe/stripe-go/v72 v72.90.0 // indirect
|
|
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
|
|
github.com/tklauser/go-sysconf v0.3.5 // indirect
|
|
github.com/tklauser/numcpus v0.2.2 // indirect
|
|
github.com/tyler-smith/go-bip39 v1.0.1-0.20181017060643-dbb3b84ba2ef // indirect
|
|
github.com/vivint/infectious v0.0.0-20200605153912-25a574ae18a3 // indirect
|
|
github.com/xtgo/uuid v0.0.0-20140804021211-a0b114877d4c // indirect
|
|
github.com/yuin/gopher-lua v0.0.0-20191220021717-ab39c6098bdb // indirect
|
|
github.com/zeebo/admission/v3 v3.0.3 // indirect
|
|
github.com/zeebo/blake3 v0.2.3 // indirect
|
|
github.com/zeebo/float16 v0.1.0 // indirect
|
|
github.com/zeebo/incenc v0.0.0-20180505221441-0d92902eec54 // indirect
|
|
github.com/zeebo/mwc v0.0.4 // indirect
|
|
go.etcd.io/bbolt v1.3.5 // indirect
|
|
go.uber.org/atomic v1.7.0 // indirect
|
|
go.uber.org/multierr v1.6.0 // indirect
|
|
golang.org/x/crypto v0.5.0 // indirect
|
|
golang.org/x/exp v0.0.0-20221205204356-47842c84f3db // indirect
|
|
golang.org/x/mod v0.6.0 // indirect
|
|
golang.org/x/net v0.5.0 // indirect
|
|
golang.org/x/sys v0.4.0 // indirect
|
|
golang.org/x/text v0.6.0 // indirect
|
|
golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba // indirect
|
|
golang.org/x/tools v0.2.0 // indirect
|
|
google.golang.org/protobuf v1.28.1 // indirect
|
|
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
|
|
gopkg.in/segmentio/analytics-go.v3 v3.1.0 // indirect
|
|
gopkg.in/urfave/cli.v1 v1.20.0 // indirect
|
|
gopkg.in/yaml.v2 v2.4.0 // indirect
|
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
|
storj.io/drpc v0.0.33-0.20230204035225-c9649dee8f2a // indirect
|
|
storj.io/monkit-jaeger v0.0.0-20220915074555-d100d7589f41 // indirect
|
|
storj.io/picobuf v0.0.1 // indirect
|
|
)
|