Issue10

Title Use GMPY by default
Type bug Status in-progress
Importance 35.0
Superseder Nosy List dalc, mg, mk, pagter, stm, tpj
Assigned To Keywords patch

Created on 2008-03-14.09:35:03 by mg, last changed 2008-10-13.08:25:25 by mg.

Messages
msg276 (view) Author: mg Date: 2008-10-13.08:24:43
Setting this to in-progress since we do have a patch, now we just need
it fine-tuned.
msg259 (view) Author: mg Date: 2008-10-06.20:33:55
It's been a week -- does anyone want to push forward on this?
msg232 (view) Author: mg Date: 2008-09-26.19:45:22
Sigurd has posted a patch for this here:

 
http://lists.viff.dk/pipermail/viff-devel-viff.dk/2008-September/000459.html

I would like to see some tests which verify that the result types are
indeed mpz so that we do not accidentally go back to plain integers
without noticing.
msg214 (view) Author: mg Date: 2008-09-23.17:45:29
I'm classifying this as a bug -- it is most likely a performance bug.

I don't think it should be all too difficult to fix this, one only has
to take care of converting the mpz objects into bytes and back again
when the data is sent over the network. As far as I remember mpz
objects have a method for this.

Other than that, the tricky part is to make sure that all numbers used
in VIFF are converted to mpz objects when we first encounter them. So
the arguments to the overloaded __add__, __mul__, etc. methods of
Share should be converted, as should arguments to shamir_share.

Please write a comment here if any of you wants to look at this.
msg83 (view) Author: mg Date: 2008-04-10.10:36:16
As described in Msg 82 (Issue 13), GMPY is about twice as fast as plain
Python for small numbers (16-64 bit) and the gap only increases as we
turn to larger numbers. So we should definitely fix this issue.
msg14 (view) Author: mg Date: 2008-03-14.09:35:03
Make field elements use GMPY unless some option asks them not to.

We used to have two implementations of field elements, one using
Python integers and one using GMPY. At one point way back I removed
the GMPY implementation since it was lacking behind the Python
implementation. But we should introduce it again, but this time as one
class only.
History
Date User Action Args
2008-10-13 08:25:25mgsetkeyword: - active-security
2008-10-13 08:25:10mgsetkeyword: + active-security
2008-10-13 08:25:01mgsetkeyword: + patch
2008-10-13 08:24:43mgsetstatus: chatting -> in-progress
messages: + msg276
2008-10-06 20:33:55mgsetmessages: + msg259
2008-09-26 19:45:22mgsetmessages: + msg232
2008-09-23 17:50:59mgsetimportance: 35.0
2008-09-23 17:45:29mgsetnosy: + pagter, tpj, stm, dalc
type: feature -> bug
messages: + msg214
2008-09-23 16:20:23tpjsettype: feature
2008-07-12 21:39:11mgsettitle: Use GMPY per default -> Use GMPY by default
2008-04-10 10:36:16mgsetstatus: unread -> chatting
messages: + msg83
2008-04-07 16:46:14mksetnosy: + mk
2008-03-14 09:35:03mgcreate