Implement In-Place API
-
A significant percentage of runtime is spent on unnecessary polynomial copies. One way to avoid that is to introduce an in-place API for HE operations, e.g.
void EvalAddInPlace(Const Ciphertext& ct1, ConstCiphertext ct2)
-
The out-of-place operations can be implemented in terms of the in-place operations.
-
A list of new cryptocontext APIs that could potentially be implemented in-place:
-
EvalAddInPlace -
EvalAddMutableInPlace
-
-
EvalMultInPlace -
EvalSubInPlace -
EvalNegInPlace -
EvalRelin -
EvalModReduce -
EvalKeySwitchInPlace
-
Edited by Fabian Boemer