Re: [Python-Dev] [Python-checkins] cpython: Issue #7652: Integrate the decimal floating point libmpdec library to speed

2012-03-26 Thread Stefan Krah
Victor Stinner victor.stin...@gmail.com wrote: The 80x is a ballpark figure for the maximum expected speedup for standard numerical floating point applications. Ok, but it's just surprising when you read the What's New document. 72x and 80x look to be inconsistent. Yes, indeed, I'll

Re: [Python-Dev] [Python-checkins] cpython: Issue #7652: Integrate the decimal floating point libmpdec library to speed

2012-03-25 Thread Victor Stinner
The 80x is a ballpark figure for the maximum expected speedup for standard numerical floating point applications. Ok, but it's just surprising when you read the What's New document. 72x and 80x look to be inconsistent. For huge numbers _decimal is also faster than int: factorial(100):

Re: [Python-Dev] [Python-checkins] cpython: Issue #7652: Integrate the decimal floating point libmpdec library to speed

2012-03-23 Thread Stefan Krah
Dirkjan Ochtman dirk...@ochtman.nl wrote: As a packager, is the libmpdec library used elsewhere? For Gentoo, we generally prefer to package libraries separately and have Python depend on them. From the site, it seems like you more or less wrote libmpdec for usage in Python, but if it's

Re: [Python-Dev] [Python-checkins] cpython: Issue #7652: Integrate the decimal floating point libmpdec library to speed

2012-03-23 Thread Dirkjan Ochtman
On Fri, Mar 23, 2012 at 09:26, Stefan Krah ste...@bytereef.org wrote: I'll add the --with-system-libmpdec option with the caveat that changes will probably make it first into the libmpdec shipped with Python, see also: http://bugs.python.org/issue7652#msg155744 Sounds good, thanks! Cheers,

Re: [Python-Dev] [Python-checkins] cpython: Issue #7652: Integrate the decimal floating point libmpdec library to speed

2012-03-23 Thread Stefan Krah
Georg Brandl g.bra...@gmx.net wrote: Issue #7652: Integrate the decimal floating point libmpdec library to speed up the decimal module. Performance gains of the new C implementation are between 12x and 80x, depending on the application. Congrats Stefan! And thanks for the huge chunk

Re: [Python-Dev] [Python-checkins] cpython: Issue #7652: Integrate the decimal floating point libmpdec library to speed

2012-03-23 Thread Victor Stinner
By the way, how much faster is cdecimal? 72x or 80x? http://docs.python.org/dev/whatsnew/3.3.html#decimal Victor 2012/3/23 Stefan Krah ste...@bytereef.org: Georg Brandl g.bra...@gmx.net wrote:  Issue #7652: Integrate the decimal floating point libmpdec library to speed up the decimal

Re: [Python-Dev] [Python-checkins] cpython: Issue #7652: Integrate the decimal floating point libmpdec library to speed

2012-03-23 Thread Stefan Krah
Amaury Forgeot d'Arc amaur...@gmail.com wrote: Seconded. ?This is the kind of stuff that will make 3.3 the most awesomest 3.x release ever (and hopefully convince people that it does make sense to port)... On the other hand, porting PyPy to 3.3 will be more work ;-) We've got to keep you

Re: [Python-Dev] [Python-checkins] cpython: Issue #7652: Integrate the decimal floating point libmpdec library to speed

2012-03-23 Thread Antoine Pitrou
On Fri, 23 Mar 2012 10:22:55 +0100 Stefan Krah ste...@bytereef.org wrote: Georg Brandl g.bra...@gmx.net wrote: Issue #7652: Integrate the decimal floating point libmpdec library to speed up the decimal module. Performance gains of the new C implementation are between 12x and 80x,

Re: [Python-Dev] [Python-checkins] cpython: Issue #7652: Integrate the decimal floating point libmpdec library to speed

2012-03-23 Thread Stefan Krah
Antoine Pitrou solip...@pitrou.net wrote: On the web side, there seems to be a huge interest in speeding up database accesses, so let me evangelize again: Database applications using decimal will run 12x faster in 3.3. Are you sure it isn't 12.5x ? Well, that was marketing for 3.3.

Re: [Python-Dev] [Python-checkins] cpython: Issue #7652: Integrate the decimal floating point libmpdec library to speed

2012-03-22 Thread Stefan Krah
Victor Stinner victor.stin...@gmail.com wrote: Issue #7652: Integrate the decimal floating point libmpdec library to speed up the decimal module. Performance gains of the new C implementation are between 12x and 80x, depending on the application. Congrats Stefan! And thanks for the

Re: [Python-Dev] [Python-checkins] cpython: Issue #7652: Integrate the decimal floating point libmpdec library to speed

2012-03-22 Thread Dirkjan Ochtman
On Wed, Mar 21, 2012 at 23:22, Victor Stinner victor.stin...@gmail.com wrote: http://hg.python.org/cpython/rev/730d5357 changeset:   75850:730d5357 user:        Stefan Krah sk...@bytereef.org date:        Wed Mar 21 18:25:23 2012 +0100 summary:  Issue #7652: Integrate the decimal

Re: [Python-Dev] [Python-checkins] cpython: Issue #7652: Integrate the decimal floating point libmpdec library to speed

2012-03-22 Thread Georg Brandl
On 21.03.2012 23:22, Victor Stinner wrote: http://hg.python.org/cpython/rev/730d5357 changeset: 75850:730d5357 user:Stefan Krah sk...@bytereef.org date:Wed Mar 21 18:25:23 2012 +0100 summary: Issue #7652: Integrate the decimal floating point libmpdec library to

Re: [Python-Dev] [Python-checkins] cpython: Issue #7652: Integrate the decimal floating point libmpdec library to speed

2012-03-22 Thread Amaury Forgeot d'Arc
2012/3/22 Georg Brandl g.bra...@gmx.net: Congrats Stefan! And thanks for the huge chunk of code. Seconded.  This is the kind of stuff that will make 3.3 the most awesomest 3.x release ever (and hopefully convince people that it does make sense to port)... On the other hand, porting PyPy to

Re: [Python-Dev] [Python-checkins] cpython: Issue #7652: Integrate the decimal floating point libmpdec library to speed

2012-03-21 Thread Victor Stinner
http://hg.python.org/cpython/rev/730d5357 changeset:   75850:730d5357 user:        Stefan Krah sk...@bytereef.org date:        Wed Mar 21 18:25:23 2012 +0100 summary:  Issue #7652: Integrate the decimal floating point libmpdec library to speed up the decimal module. Performance