mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-09 14:47:56 -05:00
chore(wasm): remove serialization in web test
In the web wasm test we serialize the public key to print its size (38_931_6265 bytes) this means we hold the public key twice in ram. I suspect this causes frequent out of memory errors which then result in the test timing out. So we remove that hoping it has a positive impact
This commit is contained in:
@@ -67,10 +67,6 @@ async function publicKeyTest() {
|
||||
let publicKey = TfhePublicKey.new(clientKey);
|
||||
console.timeEnd('PublicKey Gen')
|
||||
|
||||
let data = publicKey.serialize()
|
||||
console.log("PublicKey size:", data.length)
|
||||
data = null;
|
||||
|
||||
console.time('FheUint8 encrypt with PublicKey')
|
||||
let encrypted = FheUint8.encrypt_with_public_key(255, publicKey);
|
||||
console.timeEnd('FheUint8 encrypt with PublicKey')
|
||||
|
||||
Reference in New Issue
Block a user