[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Slowness when using lambda expressions

From: Elias Mårtenson
Subject: Slowness when using lambda expressions
Date: Mon, 30 Mar 2020 09:39:54 +0800

The following _expression_ takes about 12 seconds to compute on my laptop:

{⍺+⍵}/ ⍳1000000

However, the equivalent _expression_ without the lambda _expression_ is immediate (i.e. thr prompt returns before I have time to notice that it even started calculating):

+/ ⍳1000000

What is causing the large difference in performance?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]