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

Reduce number of PoT checkpoints 2x #1708

Merged
merged 1 commit into from
Jul 29, 2023
Merged

Reduce number of PoT checkpoints 2x #1708

merged 1 commit into from
Jul 29, 2023

Conversation

nazar-pc
Copy link
Member

Since we have unusual use of AES, we don't really care whether we're doing encoding or decoding, we have both inputs and outputs either way.

If that is the case, why don't we cut number of checkpoints in half and for every sub-interval (between two checkpoints) do this instead:

[encoding]-> | <-[decoding]

Essentially run half of iterations in forward and half of iterations in backward direction, then compare that both resulted in the same middle value.

This way with 8 checkpoints instead of 16 we still get the same instruction-level parallelism and the same verification performance (as I have confirmed with benchmarks).

Code contributor checklist:

@nazar-pc nazar-pc requested review from dariolina and rahulksnv July 27, 2023 10:13
@nazar-pc nazar-pc force-pushed the pot-half-checkpoints branch from 26e03c7 to dada2aa Compare July 27, 2023 10:13
@nazar-pc nazar-pc force-pushed the pot-half-checkpoints branch from dada2aa to 38d02ff Compare July 27, 2023 13:07
@nazar-pc nazar-pc mentioned this pull request Jul 27, 2023
1 task
Copy link
Member

@dariolina dariolina left a comment

Choose a reason for hiding this comment

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

Updated the spec accordingly. Thanks for this idea!

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.

2 participants