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

feat: minor verifier optimizations #53

Merged
merged 1 commit into from Aug 7, 2023

Conversation

AaronFeickert
Copy link
Contributor

@AaronFeickert AaronFeickert commented Aug 4, 2023

Adds a few minor optimizations to the verifier.

In the case of verification with no mask extraction, the vector used to store optional mask data is constructed empty with no capacity hint, but has None values pushed to it, resulting in unnecessary reallocation. This is now fixed by performing the correct allocation immediately.

A few scalar multiplications were being performed repeatedly. These are now computed only once per proof.

@SWvheerden SWvheerden merged commit 7960214 into tari-project:main Aug 7, 2023
8 checks passed
@SWvheerden SWvheerden mentioned this pull request Aug 7, 2023
stringhandler pushed a commit that referenced this pull request Aug 7, 2023
##
[0.3.2](v0.3.1...v0.3.2)
(2023-08-07)


## Features

* change precomputation `rc` to `arc`
([44](#44))
([d495fb2](d495fb2))
* minor verifier optimizations
([53](#53))
([7960214](7960214))
* simplify inner-product generator folding
([52](#52))
([271892c](271892c))


## Bug Fixes

* promise check in range statement
([48](#48))
([3e0008e](3e0008e))
* reduce vector capacity
([45](#45))
([9caa0c9](9caa0c9))
@AaronFeickert AaronFeickert deleted the small-optimizations branch August 7, 2023 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants