zkDatabase icon indicating copy to clipboard operation
zkDatabase copied to clipboard

Store data generated from circuit compilation in remote storage

Open magestrio opened this issue 1 year ago • 3 comments

o1js offers the capability to cache data generated from zkApp and zkProgram. Storing this data externally is a beneficial strategy. It will considerably enhance the circuit compilation time, thereby improving the user experience.

const cache = Cache.FileSystem(`/name`)
SmartContract.compile({cache})

magestrio avatar Dec 11 '23 09:12 magestrio

Can this support in memory caching?

chiro-hiro avatar Dec 13 '23 04:12 chiro-hiro

Can this support in memory caching?

Yeap, we can write directly to the directory provided by oj1s.

Cache.FileSystem(`/name`).write(UInt8Array)

magestrio avatar Dec 13 '23 09:12 magestrio

Can this support in memory caching?

Yeap, we can write directly to the directory provided by oj1s.


Cache.FileSystem(`/name`).write(UInt8Array)

I meant memory not storage 🥲

chiro-hiro avatar Dec 13 '23 15:12 chiro-hiro