package main
import (
+ "bufio"
"encoding/gob"
"io"
_ "net/http/pprof"
Variants []tileVariantID
}
+type TileVariant struct {
+ Tag tagID
+ Blake2b [blake2b.Size256]byte
+ Sequence []byte
+}
+
type LibraryEntry struct {
TagSet [][]byte
CompactGenomes []CompactGenome
- TileVariants []struct {
- Tag tagID
- Blake2b [blake2b.Size]byte
- Sequence []byte
- }
+ TileVariants []TileVariant
}
func ReadCompactGenomes(rdr io.Reader) ([]CompactGenome, error) {
- dec := gob.NewDecoder(rdr)
+ dec := gob.NewDecoder(bufio.NewReaderSize(rdr, 1<<26))
var ret []CompactGenome
for {
var ent LibraryEntry