gmp binary file

Andrey Vul andrey.vul at
Sun Oct 11 22:29:10 CEST 2009

On Sun, Oct 11, 2009 at 14:58, Marc Glisse <marc.glisse at> wrote:
> On Sun, 11 Oct 2009, Christ Schlacta wrote:
>> is it possible to store mpzclass in a binary file for faster writing and
>> loading, or is that simply not an option?  I'm working with a somewhat
>> gmp-io-bound app, and faster read/write would rock.
> Do you mean faster than the formatted I/O? mpz_class is a simple wrapper to
> the C type mpz_t, so you can use the C I/O functions on number.get_mpz_t().
> See for instance:

Chris probably means serialization, so only the first link is relevant.

Andrey Vul
andrey dot vul at gmail dot com
andrey dot vul at utoronto dot ca

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

Google is your friend.

More information about the gmp-discuss mailing list