Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove g2 point section logs #251

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}
Loading