Aatch / ramp

RAMP - Rust Arithmetic in Multiple Precision
Apache License 2.0
261 stars 38 forks source link

Use RawVec for `Int`s memory management. #33

Closed huonw closed 9 years ago

huonw commented 9 years ago

This abstracts out handling the allocator with alignment/sizes etc, and has most interesting operations predefined.

huonw commented 9 years ago

The use of reserve rather than reserve_exact means things can be a little over-allocated, but this isn't necessarily wrong?

Aatch commented 9 years ago

It looks like reserve allocates for double the space you actually ask for. As the only operation to grow the size rapidly is multiplication, and that needs a separate allocation anyway, I'd rather not over-allocate quite so much.

huonw commented 9 years ago

Ok, switched to reserve_exact.

Aatch commented 9 years ago

Sweet!