From 89e37e61bda590875465a0b4fe749275d38f403b Mon Sep 17 00:00:00 2001 From: Madhur Shrimal Date: Tue, 6 Feb 2024 22:04:03 -0800 Subject: [PATCH] remove g2 point section logs --- pkg/encoding/utils/pointsIO.go | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/pkg/encoding/utils/pointsIO.go b/pkg/encoding/utils/pointsIO.go index 68f0af16af..45c3f18527 100644 --- a/pkg/encoding/utils/pointsIO.go +++ b/pkg/encoding/utils/pointsIO.go @@ -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) @@ -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) @@ -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 }