I saw this change in openaxiom that add map! in List, I benchmark it and find out it makes a huge difference:
x := new(10^8,1)$List INT; )time on map!(y+->y,x); --1.76s before; 0.79s after map!(y+->y+1,x); -- 2.44s before; 1.23s after 1. I wonder which functions else can gain performance simply by repeat definition? 2. The deeper question, can compiler do this optimization automatically? -- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/fricas-devel. For more options, visit https://groups.google.com/d/optout.
