Documentation ¶
Index ¶
Constants ¶
View Source
const ( GLOBAL_REDUCTION string = "GLOBAL_REDUCTION" OFFSET_RANDOMNESS string = "OFFSET_RANDOMNESS" DEGREE_RANDOMNESS string = "DEGREE_RANDOMNESS" QUOTIENT_POLY_TMPL string = "QUOTIENT_DEG_%v_SHARE_%v" EVALUATION_RANDOMESS string = "EVALUATION_RANDOMNESS" UNIVARIATE_EVAL_ALL_HANDLES string = "UNIV_EVAL_ALL_HANDLES" UNIVARIATE_EVAL_QUOTIENT_SHARES string = "UNIV_EVAL_QUOTIENT_%v_OVER_%v" )
View Source
const ( // When ctx.domainSize>=524288, proverEvaluationQueries() experiences a heavy workload, // consistently hitting the GOMEMLIMIT of 340GiB. // This results in numerous auto GCs during CPU-intensive small tasks, significantly degrading performance. // In the benchmark input files, GC_DOMAIN_SIZE >= 524288 means only the first call of proverEvaluationQueries(). // With ctx.domainSize<=262144, manual GC is not necessary as auto GCs triggered by GOMEMLIMIT suffice. GC_DOMAIN_SIZE int = 524288 // Auto GCs are triggered during ReEvaluate and Batch evaluation // when len(handles) exceeds approximately 4000, causing performance degradation. // This threshold is set to perform manual GCs before ReEvaluate and Batch evaluation // only when len(handles) reaches a size substantial enough to trigger auto GC during ReEvaluate and Batch evaluation. // Note that the value of GC_HANDLES_SIZE 4000 is derived from experience and analytics on the benchmark input files. GC_HANDLES_SIZE int = 4000 )
Variables ¶
This section is empty.
Functions ¶
func Compile ¶
func Compile(comp *wizard.CompiledIOP)
Compile takes all the uncompiled global constraint found in comp and compile them using Plonk's quotient technique. The compiler also applies symbolic expression optimization and runtime memory optimizations for the prover.
func GetDegree ¶
GetDegree is a generator returning a DegreeGetter that can be passed to symbolic.ExpressionBoard.Degree. The generator takes the domain size as input.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.