On Tue, Apr 9, 2013 at 9:44 AM, ThanhVu Nguyen <[email protected]> wrote:
> So indeed things become much much faster using GMPY ground types.
>
> Another speed related question is doing expression substituion, i.e
> expr.subs(dict).   This subs operation is very slow comparing to Sage.   In
> my case I often have to do this  task which instantiates an expression with
> hundred of thousand of data  and this takes lots of time.  For example,
> [(x**3 + y**2 + z + 3).subs(d)  for d in big_data_set].   Is there some way
> to do this more efficiently ?   Like using different data structure than
> Expression ?

Can you post the code for the subs(d)? So that we can profile it and
see what the bottleneck is.

Thanks for all your work and being in touch with us, that is very useful.

Ondrej

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to