andyvand / gmpy

Automatically exported from code.google.com/p/gmpy
GNU Lesser General Public License v3.0
0 stars 0 forks source link

patch faster long2mpz #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

long2mpz becomes faster reading two digits at a time, each digit having
SHIFT=15 digits. 
On a computer with Debian, Pentium M 1.60GHz the tests in mpmath run 1%
faster with this patch.

Original issue reported on code.google.com by mario.pe...@gmail.com on 9 Nov 2008 at 3:14

Attachments:

GoogleCodeExporter commented 9 years ago
There is a misprint: ...each digit having SHIFT=15 bits.

Original comment by mario.pe...@gmail.com on 9 Nov 2008 at 3:17

GoogleCodeExporter commented 9 years ago
A faster long2mpz was added to the svn repository. Can you test the svn 
version? (A
good revision to grab is r48.)

casevh

Original comment by casevh on 10 Nov 2008 at 2:40

GoogleCodeExporter commented 9 years ago
I tested the svn version with mpmath 0.10. It is approximately 4% faster.

Original comment by casevh on 10 Nov 2008 at 6:31

GoogleCodeExporter commented 9 years ago
I tried the svn version 48 with mpmath 0.10; it is 2% faster than gmpy-1.03 with
my patch.
Great function mpz_import !

Original comment by mario.pe...@gmail.com on 10 Nov 2008 at 8:56

GoogleCodeExporter commented 9 years ago
Just closing the issue.

Case

Original comment by casevh on 4 Jan 2009 at 12:27