Skip to content

Commit

Permalink
remove g2 point section logs (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur authored Feb 7, 2024
1 parent 8b141cc commit 9533a06
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions pkg/encoding/utils/pointsIO.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,7 @@ func ReadG2PointSection(filepath string, from, to uint64, numWorker uint64) ([]b
}()

n := to - from

startTimer := time.Now()

g2r := bufio.NewReaderSize(g2f, int(n*G2PointBytes))

_, err = g2f.Seek(int64(from*G2PointBytes), 0)
Expand All @@ -308,12 +307,6 @@ func ReadG2PointSection(filepath string, from, to uint64, numWorker uint64) ([]b
return nil, err
}

// measure reading time
t := time.Now()
elapsed := t.Sub(startTimer)
log.Printf(" Reading G2 points (%v bytes) takes %v\n", (n * G2PointBytes), elapsed)
startTimer = time.Now()

s2Outs := make([]bls.G2Point, n)

results := make(chan error, numWorker)
Expand All @@ -340,9 +333,5 @@ func ReadG2PointSection(filepath string, from, to uint64, numWorker uint64) ([]b
}
}

// measure parsing time
t = time.Now()
elapsed = t.Sub(startTimer)
log.Println(" Parsing takes", elapsed)
return s2Outs, nil
}

0 comments on commit 9533a06

Please sign in to comment.