Re: BigInteger enhancing
- From: Thomas Pornin <pornin@xxxxxxxxx>
- Date: 24 Feb 2009 12:55:41 GMT
According to Dmitriy Melnik <mitro.usenet@xxxxxxxxx>:
I've already considered delegating. But my new BigInteger is to be
used heavily. So invoking two methods instead of one could decrease
the speed.
If you are after factorization with quadratic sieve, then you will
probably want to have your own notion of "big integers", plausibly
something mutable instead of the immutable BigInteger. You may want
to look at:
http://www.alpertron.com.ar/ECM.HTM
It features a Java applet which performs such factorization with
elliptic curves, but switching to quadratic sieve for big numbers.
The source code is available; it is quite ugly but it works. The
author apparently used his own code for big integers.
I have not implemented quadratic sieve, but I tried ECM, both with
BigInteger, and with some custom code where big integers are held in
arrays of int. The custom code was about twice faster, mostly because I
could keep the numbers in Montgomery representation, for faster modular
multiplications.
--Thomas Pornin
.
- Follow-Ups:
- Re: BigInteger enhancing
- From: Dmitriy Melnik
- Re: BigInteger enhancing
- References:
- BigInteger enhancing
- From: Dmitriy Melnik
- Re: BigInteger enhancing
- From: Thomas Pornin
- Re: BigInteger enhancing
- From: Lew
- Re: BigInteger enhancing
- From: Dmitriy Melnik
- BigInteger enhancing
- Prev by Date: Re: Stateful character decoder?
- Next by Date: Re: Loop Efficiency
- Previous by thread: Re: BigInteger enhancing
- Next by thread: Re: BigInteger enhancing
- Index(es):
Relevant Pages
|