Closed Manuthor closed 2 years ago
The deserialization process is slow du to deserialization of group Gt
elements. During this deserialization, cryptographic verifications are done to ensure than Gt
elements are what they claim to be : the function is_gt_element
, added to guaranty this property, consumes around 40% of time of this process.
Another remark concerns the WASM binaries: extract of Not So Fast: Analyzing the Performance of WebAssembly vs. Native Code:
should be done in :
This optimization is actually the use of a
EncryptionCache
orDecryptionCache
: see src/interfaces/ffi/hybrid_gpsw_aes.rs. Play withbench.rs
in order to monitor perfs.Before using this
cache
, it could be interesting to understand why the public key deserialization is slow (shoud we replacefrom_bytes
withserde
?)