Deserialization takes too much time
Opened this issue · 1 comments
wSemis commented
Below are part of my code. It takes me about 30 seconds to deserialize pubilc key(pk) using bytesToObject(group,bytes) after I serialize it. In comparison, the serialization and python's pickle takes less than 1 ms. I wonder if there's an issue in the implementation of deserialization. If not, I don't think the speed of 30s is acceptable for any real life applications.
g_array = [[], []]
prev1 = g1
prev2 = g2
for i in range(2 * n):
prev1 = prev1**eta
prev2 = prev2**eta
g_array[0].append(prev1)
g_array[1].append(prev2)
pk = {
'n': n,
'g1': g1,
'g2': g2,
'g1^a': g1**a,
'g2^a': g2**a,
'nu': nu,
'E': E,
'g_arr': g_array,
}
wSemis commented
I found that deserialization for "SS512" takes 0.37 second for the same code. Mine was using "MNT224" previously.