-
Notifications
You must be signed in to change notification settings - Fork 606
feat: ProverPolynomials owns its memory #3560
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
Merged
Merged
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
45a4d32
feat: remove ProverPolynomials span backing
ludamad0 693dc31
Merge github.com:AztecProtocol/aztec-packages into ad/refactor/polyno…
ludamad0 a3deafb
Refactor
ludamad0 7a8a6bc
Merge github.com:AztecProtocol/aztec-packages into ad/refactor/polyno…
ludamad0 4716652
Deep clone
ludamad0 1cda946
use share() everywhere
ludamad0 00eba29
Update zeromorph.hpp
ludamad f2cda37
Update eccvm_composer.cpp
ludamad 6f831ea
Update composer_lib.hpp
ludamad c115f4b
Update permutation_lib.hpp
ludamad 793fad5
Update grand_product_library.test.cpp
ludamad efbec21
use share() everywhere
ludamad0 a223c98
fix: build
ludamad0 d1299d9
Passing polynomial tests
ludamad0 78ff9af
refactor(bb): less auto in zeromorph
ludamad0 8ee0152
Remove copy constructing of ProverPolynomials
ludamad0 88cb0b4
feat(bb): debug log
ludamad0 3714e2e
Debug log
ludamad0 603924e
Fix bug
ludamad0 3ddc166
Merge remote-tracking branch 'origin/master' into ad/feat/bb-debug-log
ludamad0 e9623de
Merge remote-tracking branch 'origin/master' into ad/refactor/polynom…
ludamad0 cdda93b
Fix bug
ludamad0 67de114
Update debug_log.cpp
ludamad 6958c13
Witness
ludamad0 9421093
Update debug_log.cpp
ludamad 79e5b37
post merge fixes
ludamad0 c48ca7a
post merge fixes
ludamad0 092a962
post merge fixes
ludamad0 9b20fd4
output
ludamad0 75258a7
output
ludamad0 08c6bb4
reinstate polynomial copies
ludamad0 d85b811
consistency: dont use deep_clone
ludamad0 0d1ca17
Remove stuff
ludamad0 20f9f18
Remove storage cruft
ludamad0 e595694
fix
ludamad0 b2cb0d8
format
ludamad0 d8e5cb2
Merge remote-tracking branch 'origin/ad/feat/bb-debug-log' into ad/re…
ludamad0 6af9aaf
debugs
ludamad0 3157f16
Fix attempts
ludamad0 20d3932
Fix attempts
ludamad0 c763a10
Fix attempts
ludamad0 e224558
revert debug tools
ludamad0 e6fe266
revert debug tools
ludamad0 aece6e5
Fix ultra witnesses
ludamad0 e686afb
Update
ludamad0 d1a6117
Update prover_instance.hpp
ludamad bc7a9aa
Fix attempts
ludamad0 6a8bd75
Merge remote-tracking branch 'origin/ad/refactor/polynomials-span' in…
ludamad0 bc852ea
Fix attempts
ludamad0 3c03f3e
fix
ludamad0 d81bc7b
shifty
ludamad0 63fd313
no commitment handle
ludamad0 8977c3c
fix: polynomial alignment
ludamad0 4530905
The bug
ludamad0 7781b3a
fix
ludamad0 719c6de
Copy over helpers
ludamad0 9379911
build fix
ludamad0 7967923
grand product fix
ludamad0 3344053
grand product fix
ludamad0 598dd98
unshifted order fix
ludamad0 0fa607b
sad not working noises
ludamad0 92c1804
Revert
ludamad0 d65e5b2
try a kludge
ludamad0 5511fac
FIXES!???
ludamad0 ea2e72b
Merge branch 'master' into ad/refactor/polynomials-span
ludamad 9259f42
Merge branch 'master' into ad/refactor/polynomials-span
ludamad 10e294c
typo
ludamad 6db2e10
fix and todo
ludamad0 4b7bb3c
Merge branch 'master' into ad/refactor/polynomials-span
ludamad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| #include "std_string.hpp" | ||
| #include <algorithm> | ||
| #include <cctype> | ||
| #include <iostream> | ||
| #include <locale> | ||
| #include <sstream> | ||
| #include <vector> | ||
|
|
||
| namespace barretenberg::detail { | ||
| std::vector<std::string> split(const std::string& str, char delimiter) | ||
| { | ||
| std::vector<std::string> result; | ||
| std::istringstream iss(str); | ||
| std::string token; | ||
|
|
||
| while (std::getline(iss, token, delimiter)) { | ||
| result.push_back(token); | ||
| } | ||
|
|
||
| return result; | ||
| } | ||
|
|
||
| // trim from start (in place) | ||
| void ltrim(std::string& s) | ||
| { | ||
| s.erase(s.begin(), std::find_if(s.begin(), s.end(), [](unsigned char ch) { return !std::isspace(ch); })); | ||
| } | ||
|
|
||
| // trim from end (in place) | ||
| void rtrim(std::string& s) | ||
| { | ||
| s.erase(std::find_if(s.rbegin(), s.rend(), [](unsigned char ch) { return !std::isspace(ch); }).base(), s.end()); | ||
| } | ||
|
|
||
| // trim from both ends (in place) | ||
| void trim(std::string& s) | ||
| { | ||
| rtrim(s); | ||
| ltrim(s); | ||
| } | ||
| std::vector<std::string> split_and_trim(const std::string& str, char delimiter) | ||
| { | ||
| std::vector<std::string> ret = split(str, delimiter); | ||
| for (std::string& part : ret) { | ||
| trim(part); | ||
| } | ||
| return ret; | ||
| } | ||
| } // namespace barretenberg::detail |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| #include <string> | ||
| #include <vector> | ||
|
|
||
| namespace barretenberg::detail { | ||
| std::vector<std::string> split(const std::string& str, char delimiter); | ||
| // trim from start (in place) | ||
| void ltrim(std::string& s); | ||
| // trim from end (in place) | ||
| void rtrim(std::string& s); | ||
| // trim from both ends (in place) | ||
| void trim(std::string& s); | ||
|
|
||
| // Used to extract variables from a macro #__VA_ARGS__ | ||
| std::vector<std::string> split_and_trim(const std::string& str, char delimiter); | ||
| } // namespace barretenberg::detail |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| #pragma once | ||
| #include <vector> | ||
|
|
||
| // TODO(https://github.com/AztecProtocol/barretenberg/issues/794) namespace this once convenient | ||
| /** | ||
|
ludamad marked this conversation as resolved.
|
||
| * @brief Concatenates multiple std::vector objects into a single std::vector. | ||
| * | ||
| * @tparam T The type of elements in the std::vector. | ||
| * @param vectors The std::vector objects to be concatenated. | ||
| * @return std::vector object containing all elements from the input vectors. | ||
| */ | ||
| template <typename T> std::vector<T> concatenate(const std::vector<T>& vector, const auto&... vectors) | ||
| { | ||
| std::vector<T> concatenated; | ||
| // Reserve our final space | ||
| concatenated.reserve(vector.size() + (vectors.size() + ...)); | ||
|
|
||
| auto append = [&](const auto& vec) { std::copy(vec.begin(), vec.end(), std::back_inserter(concatenated)); }; | ||
|
|
||
| append(vector); | ||
| // Unpack and append each std::vector's elements to concatenated | ||
| (append(vectors), ...); | ||
|
|
||
| return concatenated; | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.