4 ms·
I don't think there's much that can be done, except trying to identify any circuitry shared among branches and moving it out. Like if we have "if (cond) { hash(
by dlubarov 6y ago
I don't think there's much that can be done, except trying to identify any circuitry shared among branches and moving it out. Like if we have "if (cond) { hash(x) } else { hash(y) }", we can move the hash circuit outside of the conditional.
There are some circuit compilers that try to do optimizations like that automatically, like xJsnark, though it's not meant for FHE.