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

Pass Circuit by reference #496

Merged
merged 1 commit into from
Oct 23, 2020
Merged

Conversation

ljedrz
Copy link
Collaborator

@ljedrz ljedrz commented Oct 9, 2020

This PR will allow Leo Programs to not require costly cloning during the build process and remove the need to derive Clone for them and the related objects that are not practical to clone.

@codecov
Copy link

codecov bot commented Oct 9, 2020

Codecov Report

Merging #496 into master will increase coverage by 0.00%.
The diff coverage is 86.27%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #496   +/-   ##
=======================================
  Coverage   78.86%   78.86%           
=======================================
  Files         353      353           
  Lines       22296    22302    +6     
=======================================
+ Hits        17583    17589    +6     
  Misses       4713     4713           
Impacted Files Coverage Δ
algorithms/src/snark/gm17/snark.rs 78.57% <ø> (ø)
algorithms/src/snark/groth16/snark.rs 78.57% <ø> (+14.28%) ⬆️
dpc/src/base_dpc/outer_circuit/outer_circuit.rs 0.00% <0.00%> (ø)
marlin/src/ahp/prover.rs 94.85% <ø> (ø)
marlin/src/lib.rs 94.50% <ø> (ø)
models/src/gadgets/r1cs/constraint_system.rs 25.58% <ø> (ø)
dpc/src/base_dpc/mod.rs 66.84% <16.66%> (+0.90%) ⬆️
algorithms/src/snark/groth16/prover.rs 53.57% <50.00%> (ø)
algorithms/src/snark/gm17/generator.rs 52.54% <100.00%> (ø)
algorithms/src/snark/gm17/prover.rs 61.87% <100.00%> (ø)
... and 27 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b13e295...45d4792. Read the comment docs.

@ljedrz
Copy link
Collaborator Author

ljedrz commented Oct 23, 2020

Rebased.

@howardwu
Copy link
Member

LGTM!

@howardwu howardwu merged commit 27ab479 into ProvableHQ:master Oct 23, 2020
@ljedrz ljedrz deleted the ref_circuit_args branch June 1, 2021 08:10
Raphexion added a commit to eigerco/snarkOS that referenced this pull request Dec 3, 2024
When prometheus updates to v3, it is becoming stricter with the
Content-Type of the response.

https://prometheus.io/docs/prometheus/3.0/migration/#scrape-protocols

```
Prometheus v3 is more strict concerning the Content-Type header received when scraping.
Prometheus v2 would default to the standard Prometheus text protocol if the target being
scraped did not specify a Content-Type header or if the header was unparsable or unrecognised.
This could lead to incorrect data being parsed in the scrape. Prometheus v3 will now fail the scrape in such cases.
```

The Content-Type is updated in dependency. So all we have to do is
update the version.

From the metrics/metrics-exporter-prometheus CHANGELOG.md:

```

- Update the `Content-Type` response header to `text/plain`, matching the Exposition format
  specification. ([ProvableHQ#496](metrics-rs/metrics#496))
```
Raphexion added a commit to eigerco/snarkOS that referenced this pull request Dec 18, 2024
When prometheus updates to v3, it is becoming stricter with the
Content-Type of the response.

https://prometheus.io/docs/prometheus/3.0/migration/#scrape-protocols

```
Prometheus v3 is more strict concerning the Content-Type header received when scraping.
Prometheus v2 would default to the standard Prometheus text protocol if the target being
scraped did not specify a Content-Type header or if the header was unparsable or unrecognised.
This could lead to incorrect data being parsed in the scrape. Prometheus v3 will now fail the scrape in such cases.
```

The Content-Type is updated in dependency. So all we have to do is
update the version.

From the metrics/metrics-exporter-prometheus CHANGELOG.md:

```

- Update the `Content-Type` response header to `text/plain`, matching the Exposition format
  specification. ([ProvableHQ#496](metrics-rs/metrics#496))
```
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