Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #2583
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: integer multiplication |
| Date | 2011-04-04 15:04 -0400 |
| References | <BANLkTik5Oq0AE5-yrbSa2oES5_g8+gspeA@mail.gmail.com> <mailman.177.1301880825.2990.python-list@python.org> <7xy63qpnrh.fsf@ruckus.brouhaha.com> <incsbs$6b9$1@dough.gmane.org> <AANLkTimZ3Upjg29sS63_cFaRX9fvz-xKt3e+i2aLm+6U@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.16.1301943893.9059.python-list@python.org> (permalink) |
On 4/4/2011 1:20 PM, geremy condra wrote: > On Mon, Apr 4, 2011 at 9:41 AM, Terry Reedy<tjreedy@udel.edu> wrote: >> (I believe that retaining two implementations internally was considered but >> rejected. Could be wrong.) > > There are two implementations, grade school multiplication and > karatsuba, which kicks in after a given cutoff. I meant internally retaining the 2.7 machine int and unbounded long types. >> I am curious how gmpy compares to 3.x ints (longs) with small number >> calculations like 3+5 or 3*5. > > I have this data somewhere, if you're interested I'll try to dredge it up. My question is whether gmpy ints could be a complete substitute for 3.x ints, or whether speed for bit (1000 digit) ints came at the expense of extra overhead making small int calculations slower. That is separate from the issue of whether gmpy ints implement the entire int interface, or whether they currently inter-operate with other types as well. -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: integer multiplication geremy condra <debatem1@gmail.com> - 2011-04-03 18:33 -0700
Re: integer multiplication Paul Rubin <no.email@nospam.invalid> - 2011-04-03 22:51 -0700
Re: integer multiplication Terry Reedy <tjreedy@udel.edu> - 2011-04-04 12:41 -0400
Re: integer multiplication casevh <casevh@gmail.com> - 2011-04-04 12:18 -0700
Re: integer multiplication geremy condra <debatem1@gmail.com> - 2011-04-04 10:20 -0700
Re: integer multiplication Terry Reedy <tjreedy@udel.edu> - 2011-04-04 15:04 -0400
csiph-web