AztecProtocol / barretenberg

Apache License 2.0
138 stars 87 forks source link

Investigate Honk memory consumption (in Wasm and natively) #976

Closed lucasxia01 closed 2 days ago

lucasxia01 commented 5 months ago

I've measured through the double_verify_proof ACIR bb.js test that Honk uses right about 4GiB of memory, while Plonk uses 3.6GiB of memory, potentially less. These numbers could be inaccurate, but we should do more investigation regardless.

lucasxia01 commented 2 days ago

Investigated.... I measured a large number for Honk because it used the slab allocator to allocate a large slab and removing that call dropped the memory down to more reasonable numbers.