From 1279d0549cd585451ba6b0bb883995f0891053e7 Mon Sep 17 00:00:00 2001 From: Wonyong Kim Date: Mon, 29 Jul 2024 23:43:44 +0900 Subject: [PATCH] chore(circom): change help message of the option `--no_use_mmap` This also include a missing change from #490 --- vendors/circom/README.md | 1 + vendors/circom/prover_main.cc | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/vendors/circom/README.md b/vendors/circom/README.md index 33a4566cc..abefe36a4 100644 --- a/vendors/circom/README.md +++ b/vendors/circom/README.md @@ -75,6 +75,7 @@ Optional arguments: --curve The curve type among ('bn254', bls12_381'), by default 'bn254' --no_zk Create proof without zk. By default zk is enabled. Use this flag in case you want to compare the proof with rapidsnark. +--no_use_mmap Create proof without mmap(2). By default, mmap(2) is enabled, offering faster proof generation at the cost of increased memory usage due to the memory mapped file. Use this flag if you want to use less memory. --verify Verify the proof. By default verify is disabled. Use this flag to verify the proof with the public inputs. -n, --num_runs The number of times to run the proof generation --disable_fast_twiddles_mode diff --git a/vendors/circom/prover_main.cc b/vendors/circom/prover_main.cc index e48373d79..ec31959d4 100644 --- a/vendors/circom/prover_main.cc +++ b/vendors/circom/prover_main.cc @@ -221,10 +221,10 @@ int RealMain(int argc, char** argv) { .set_long_name("--no_use_mmap") .set_default_value(false) .set_help( - "Create proof not using mmap(2). By default, mmap(2) is enabled, " - "memory mapped file offers faster proof generation at the cost of " - "increased memory usage. Use this flag if you want to use less " - "memory."); + "Create proof without mmap(2). By default, mmap(2) is enabled, " + "offering faster proof generation at the cost of increased memory " + "usage due to the memory mapped file. Use this flag if you want to " + "use less memory."); parser.AddFlag(&options.verify) .set_long_name("--verify") .set_default_value(false)