Current implementation of encryption takes ~3 seconds to complete encryption integration test if buffer size is 4400000 (4.19Mb) that is quite real size of database.
Postgres data takes 3mb for empty DB.
To reproduce test, modify text sample to 'Hello world! This is encryption example text'.repeat(100000).
The performance is ridiculous low. The interesting fact is that disabling ciphers does not improve performance.
We have to figure out the problem and think how to fix it.
In theory, we could move encryption to WASM if would have proofs it may improves performance.
Current implementation of encryption takes ~3 seconds to complete encryption integration test if buffer size is 4400000 (4.19Mb) that is quite real size of database.
Postgres data takes 3mb for empty DB.
To reproduce test, modify text sample to
'Hello world! This is encryption example text'.repeat(100000).The performance is ridiculous low. The interesting fact is that disabling ciphers does not improve performance.
We have to figure out the problem and think how to fix it.
In theory, we could move encryption to WASM if would have proofs it may improves performance.