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

perf: reduce redundant zero initializations #548

Merged
merged 5 commits into from
Oct 8, 2024

Conversation

batzor
Copy link
Contributor

@batzor batzor commented Sep 27, 2024

Description

This PR makes BigInt and Field default constructor to be non-initializing, which makes it possible to initialize large vectors in multiple threads.

@batzor batzor force-pushed the perf/reduce-redundant-zero-initializations branch from 2c3004b to cfa0e10 Compare September 27, 2024 08:55
@batzor batzor force-pushed the perf/reduce-redundant-zero-initializations branch 3 times, most recently from 4763f40 to a5785f3 Compare September 27, 2024 09:25
@batzor batzor changed the title Perf/reduce redundant zero initializations perf: reduce redundant zero initializations Sep 27, 2024
@batzor batzor marked this pull request as ready for review September 27, 2024 09:37
Copy link
Contributor

@TomTaehoonKim TomTaehoonKim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

tachyon/math/base/arithmetics_results.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/permutation/grand_product_argument.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/permutation/grand_product_argument.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/halo2/pinned_evaluation_domain.h Outdated Show resolved Hide resolved
tachyon/zk/lookup/log_derivative_halo2/prover_impl.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/halo2/proof_reader.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/halo2/synthesizer.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/keys/key.h Outdated Show resolved Hide resolved
tachyon/zk/plonk/vanishing/graph_evaluator.h Outdated Show resolved Hide resolved
@batzor batzor force-pushed the perf/reduce-redundant-zero-initializations branch 5 times, most recently from f014252 to 813b0ad Compare October 6, 2024 08:50
Copy link
Contributor

@ashjeong ashjeong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mistakenly approved oops. Could you fix this one last thing? Approved!

tachyon/crypto/commitments/kzg/kzg.h Outdated Show resolved Hide resolved
@batzor batzor force-pushed the perf/reduce-redundant-zero-initializations branch 3 times, most recently from 262d3c3 to 086536b Compare October 7, 2024 10:06
tachyon/base/parallelize.h Outdated Show resolved Hide resolved
tachyon/base/parallelize.h Outdated Show resolved Hide resolved
tachyon/base/parallelize.h Outdated Show resolved Hide resolved
@batzor batzor force-pushed the perf/reduce-redundant-zero-initializations branch from 086536b to e344ce2 Compare October 8, 2024 06:14
@batzor batzor force-pushed the perf/reduce-redundant-zero-initializations branch from e344ce2 to 90452b4 Compare October 8, 2024 06:19
Copy link
Contributor

@chokobole chokobole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chokobole chokobole merged commit ab62362 into main Oct 8, 2024
6 of 7 checks passed
@chokobole chokobole deleted the perf/reduce-redundant-zero-initializations branch October 8, 2024 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants