Preliminary benchmark shows 70% speedup for SBCL. (0.7s vs 1.2s).

The improvement was smaller that I originally thought.

I also thought it is a burden for us to maintain the (double)float
computation algorithm.

- Qian

On 4/16/21 6:35 AM, Waldek Hebisch wrote:
On Thu, Apr 15, 2021 at 05:43:03PM +0800, Qian Yun wrote:
I found this from github issue #55.

In ComplexCategory, there is

          if R is DoubleFloat then
             stoc ==> s_to_c$Lisp
             ctos ==> c_to_s$Lisp

             exp   x == ctos EXP(stoc x)$Lisp
             log   x == ctos LOG(stoc x)$Lisp
...... etc

I think "sqrt" should also be optimized by using Lisp call here.

Maybe.  AFAICS main point was that we need some implementation
and this was the easiest one.  OTOH in some other cases we
use our own implementation to avoid bugs in some Lisp.


--
You received this message because you are subscribed to the Google Groups "FriCAS - 
computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/b6f39ba7-5203-cd7f-bbaa-08778055dcad%40gmail.com.

Reply via email to