Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news2.arglkargh.de!news.wiretrip.org!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'algorithms': 0.07; 'python': 0.07; 'list)': 0.09; 'sun,': 0.09; 'pm,': 0.11; 'wrote:': 0.14; '(sorry': 0.16; 'integers.': 0.16; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'seems': 0.21; 'header:In- Reply-To:1': 0.22; 'cc:addr:python-list': 0.22; 'compared': 0.22; 'trying': 0.23; 'integer': 0.23; 'compare': 0.26; 'message- id:@mail.gmail.com': 0.28; 'least': 0.30; 'cc:addr:python.org': 0.31; 'use?': 0.31; 'does': 0.31; 'supposed': 0.31; 'anyone': 0.31; 'thank': 0.32; 'received:209.85': 0.37; 'apr': 0.38; 'received:google.com': 0.38; 'used': 0.38; 'received:209': 0.39; 'takes': 0.40; 'header:Received:5': 0.40; '2011': 0.62; 'received:209.85.216.181': 0.68; 'received:mail- qy0-f181.google.com': 0.68; 'double': 0.69 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=l3SmYkXJOwm2Uwz4T3zD8CThIUBgsWxn7dqccz5m2vM=; b=qPoYCBFyUx41sVYNsP34cZw8ebrjWfByIS/O48EfsySraLPUhThh52oA+iX57rVcMN Jzc8MPaP5Vh+bH0qfUwlLofnEy4eZtHXO+NHTSl+vrFoSm+Yj2KCBE4xE2DVKq9E8Jlj V94uRlD/7SY63pHENXov1MC1v4UyvCY1tzhFU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=EmwJAHKmtnpKoUu2YPCulIpMyHbGdMmzn1ncfsedeP/mE6QaswZLdMNNPKtkyzyYrZ 44G+uCYKev4bICwnLFmecZL4GA/rpy0URisKJT4Fws0RABRzJATMvgV5PoHrv38lEQ+e 2eDMg+/bITKgKylpXxKTp6d4ARULOmURjUDN4= MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 3 Apr 2011 18:33:38 -0700 Subject: Re: integer multiplication From: geremy condra To: Eddie Tsay Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 12 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1301880825 news.xs4all.nl 32470 [::ffff:82.94.164.166]:50718 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:2541 On Sun, Apr 3, 2011 at 6:20 PM, Eddie Tsay wrote: > Does anyone know what algorithms for integer multiplication does Python use? > I am trying to compare it to those used by Sage as it seems like it takes > much longer for Python to do large integer multiplication as compared to > Sage (anyone know off the top of their heads?) > thank you (sorry for the double email, this was supposed to go to the list) Karatsuba multiplication, at least for large integers. Geremy Condra