@aztec/bb.js 3.0.0-nightly.20251008 → 3.0.0-nightly.20251010
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dest/browser/barretenberg_wasm/barretenberg_wasm_main/index.js +1 -1
- package/dest/browser/barretenberg_wasm/fetch_code/browser/barretenberg-threads.js +1 -1
- package/dest/browser/barretenberg_wasm/fetch_code/browser/barretenberg.js +1 -1
- package/dest/node/barretenberg_wasm/barretenberg-threads.wasm.gz +0 -0
- package/dest/node/barretenberg_wasm/barretenberg_wasm_main/index.js +1 -1
- package/dest/node-cjs/barretenberg_wasm/barretenberg-threads.wasm.gz +0 -0
- package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_main/index.js +1 -1
- package/package.json +1 -1
- package/src/barretenberg_wasm/barretenberg_wasm_main/index.ts +1 -1
|
Binary file
|
|
@@ -22,7 +22,7 @@ export class BarretenbergWasmMain extends BarretenbergWasmBase {
|
|
|
22
22
|
/**
|
|
23
23
|
* Init as main thread. Spawn child threads.
|
|
24
24
|
*/
|
|
25
|
-
async init(module, threads = Math.min(getNumCpu(), BarretenbergWasmMain.MAX_THREADS), logger = createDebugLogger('bb_wasm'), initial =
|
|
25
|
+
async init(module, threads = Math.min(getNumCpu(), BarretenbergWasmMain.MAX_THREADS), logger = createDebugLogger('bb_wasm'), initial = 33, maximum = this.getDefaultMaximumMemoryPages()) {
|
|
26
26
|
this.logger = logger;
|
|
27
27
|
const initialMb = (initial * 2 ** 16) / (1024 * 1024);
|
|
28
28
|
const maxMb = (maximum * 2 ** 16) / (1024 * 1024);
|
|
Binary file
|
|
@@ -25,7 +25,7 @@ class BarretenbergWasmMain extends index_js_3.BarretenbergWasmBase {
|
|
|
25
25
|
/**
|
|
26
26
|
* Init as main thread. Spawn child threads.
|
|
27
27
|
*/
|
|
28
|
-
async init(module, threads = Math.min((0, index_js_1.getNumCpu)(), BarretenbergWasmMain.MAX_THREADS), logger = (0, index_js_4.createDebugLogger)('bb_wasm'), initial =
|
|
28
|
+
async init(module, threads = Math.min((0, index_js_1.getNumCpu)(), BarretenbergWasmMain.MAX_THREADS), logger = (0, index_js_4.createDebugLogger)('bb_wasm'), initial = 33, maximum = this.getDefaultMaximumMemoryPages()) {
|
|
29
29
|
this.logger = logger;
|
|
30
30
|
const initialMb = (initial * 2 ** 16) / (1024 * 1024);
|
|
31
31
|
const maxMb = (maximum * 2 ** 16) / (1024 * 1024);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/bb.js",
|
|
3
3
|
"packageManager": "yarn@4.5.2",
|
|
4
|
-
"version": "3.0.0-nightly.
|
|
4
|
+
"version": "3.0.0-nightly.20251010",
|
|
5
5
|
"homepage": "https://github.com/AztecProtocol/aztec-packages/tree/master/barretenberg/ts",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -30,7 +30,7 @@ export class BarretenbergWasmMain extends BarretenbergWasmBase {
|
|
|
30
30
|
module: WebAssembly.Module,
|
|
31
31
|
threads = Math.min(getNumCpu(), BarretenbergWasmMain.MAX_THREADS),
|
|
32
32
|
logger: (msg: string) => void = createDebugLogger('bb_wasm'),
|
|
33
|
-
initial =
|
|
33
|
+
initial = 33,
|
|
34
34
|
maximum = this.getDefaultMaximumMemoryPages(),
|
|
35
35
|
) {
|
|
36
36
|
this.logger = logger;
|