You can pass multiple expressions to lambdify at once if you pass them as a list. If you use cse=True the performance can be improved if the expressions have common subexpressions among them.
Other than that I would recommend doing this and using numba.njit() or numba.njit(parallel=True) on the lambdified function. Aaron Meurer On Tue, Jun 7, 2022 at 8:07 PM Sushant Sharma Chaudhary < frenbox...@gmail.com> wrote: > Hi Everyone, > > I have 9200 symbolic expressions i need to test against same data point. > Is there a faster way to do this other than one at a time. > > The opposite 1 expression and N data points is easy using lambdify. > > I really need to boost the performance of my algorithm. Any suggestions > will be helpful. > > Sushant > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sympy+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/ded04dff-4095-45ec-b1e6-9ec0b157f203n%40googlegroups.com > <https://groups.google.com/d/msgid/sympy/ded04dff-4095-45ec-b1e6-9ec0b157f203n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6%2BFPP47-GBn09ozwi7A-1ev%3DZAOYhTJN0reSSry4Vg56A%40mail.gmail.com.