On Apr 2, 10:58 pm, Robert Bradshaw <[EMAIL PROTECTED]>
wrote:
> This is very interesting. I actually implemented something along these
> lines (but not near as complete) before implementing the fast_float
> stuff. Clearly nothing is going to beat custom-crafted C, but you've
> given me some motivation to speed up my fast-float code some more :).
>
> One reason I gave up on the invoke-the-compiler method is it just
> seemed too heavy-weight for the task, both in terms of dependancies
> (gcc, cython, at writeable temporary directory, getting all the
> compile-time flags right)

Yep, and since there are also a bunch of Sympy users on Windows some
of the assumptions about the presence of gcc might not hold. Sage is
getting ported to MSVC and not having to need a compiler for fast_eval
is a big plus since the presence of MSVC cannot be assumed. That will
also break Cython, but if one is using Cython one should be aware of
the fact that you need a compiler :)

> and also, in terms of overhead (at 2
> microseconds savings/eval, one has to evaluate the function 500,000
> times to break even with the 1 second lag, and it falls behind if I'm
> only evaluating tens of thousand of points). Another advantage is that
> other functions (for example integration and plotting) can use the
> _call_c C method which avoids all python overhead (which can be a
> substantial savings).

I also agree with Robert here that in most cases [at least for the
usage pattern we see] it seems hardly worth it due to compile time
overhead. But it is nice work nonetheless.

> I'm not trying to dissuade you from using this code, it looks good and
> is really fast, but figured I'd throw my thoughts on the topic out
> there.
>
> - Robert

Cheers,

Michael
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to