I developed a Mathematica package using Mathematica 12.1 and I am calling this package from my java code: I generate a system of equations (where I call the package) from the java code, then send this system to the Mathematica Kernel to solve it, but it takes at least 2 or 3 minutes to return a result (and sometimes keeps running). When I run Mathematica front end to solve the same system, it takes few microseconds. Can anyone tell me why is Mathematica Kernel is extremely slow?
thanks a lot