github.com/grailbio/bigslice@v0.0.0-20230519005545-30c4c12152ad/internal/defaultsize/size.go (about) 1 package defaultsize 2 3 import "flag" 4 5 var ( 6 // Chunk is the default chunk size (number of rows), configured by flag. 7 // It's part of a temporary solution; see go/bigslice-chunk-thread. 8 Chunk int 9 // SortCanary is the default sort canary size (number of rows), configured by flag. 10 // It's part of a temporary solution; see go/bigslice-chunk-thread. 11 SortCanary int 12 ) 13 14 func init() { 15 flag.IntVar(&Chunk, "bigslice-internal-default-chunk-rows", 128, 16 "Default vector size to use internally. Temporary; see go/bigslice-chunk-thread") 17 flag.IntVar(&SortCanary, "bigslice-internal-default-sort-canary-rows", 1<<8, 18 "Default sort canary size to use internally. Temporary; see go/bigslice-chunk-thread") 19 }