Though all of the code would benefit from being rewritten in a low-level programming language for performance, there are two areas that would specifically benefit the most from a rewrite. These are pslq_utils.py and pcf.py. We recommend C/C++/Julia for this, since mpmath is based on the GNU Bignum library, which is available in C/C++ and is built-in for Julia. In any case, the rewrite should conform to the existing API as much as possible.
Though all of the code would benefit from being rewritten in a low-level programming language for performance, there are two areas that would specifically benefit the most from a rewrite. These are pslq_utils.py and pcf.py. We recommend C/C++/Julia for this, since mpmath is based on the GNU Bignum library, which is available in C/C++ and is built-in for Julia. In any case, the rewrite should conform to the existing API as much as possible.