[RFC][PATCH] mini-gmp: move memory allocation out of loops
Ilya Yanok
ilya.yanok at gmail.com
Tue Feb 6 18:21:07 UTC 2018
Hello GMP developers,
I did a small patch for mini-gmp, that removes memory allocations in loop,
when mpz_get_str gets called. This might be undesired behaviour in the
presence of a garbage collector. So I've tried to avoid looped
allocation/deallocation, moving allocation out of loops.
Regards, Ilya.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mini-gmp.patch
Type: application/octet-stream
Size: 3351 bytes
Desc: not available
URL: <https://gmplib.org/list-archives/gmp-devel/attachments/20180206/bb13e3eb/attachment.obj>
More information about the gmp-devel
mailing list