Oh that’s interesting. With all the math libraries available, including ones written in CPython I had assumed Python would be more than up to number crunching tasks like this.
Is the Google Colab optimizer for fsrs4anki still behind the capability of your C++ one?