|
Hi Elias, using ⍎ in an inner loop is almost certainly a mistake. In your example ⍎ is evaluated 202287 times. That means we have less than 5 micro-seconds for tokenising, parsing, and executing the left argument of ⍎ and for producing it. That does not sound that slow. In the 70s and 80's APL programmers were aware that ⍎ was inherently slow (due to the many things happening under the hood) and did their best to avoid it. These days I see more and more examples on the web where ⍎ is used, and often without a real need to do so. Often APL programs look slighly more elegant when ⍎ is used, but the speed penalty for doing so is considerable (and un-avoidable). For the sake of APL I would hope that such examples will disappear. /// Jürgen On 10/06/2015 07:32 AM, Elias Mårtenson
wrote:
|
- Re: [Bug-apl] Performance problem with simple program Jay Foad
- Re: [Bug-apl] Performance problem with simple progr... Jay Foad
- Re: [Bug-apl] Performance problem with simple p... Peter Teeson
- Re: [Bug-apl] Performance problem with simp... Jay Foad
- Re: [Bug-apl] Performance problem with simp... Juergen Sauermann
- Re: [Bug-apl] Performance problem with ... Peter Teeson
- Re: [Bug-apl] Performance problem with ... Elias Mårtenson
- Re: [Bug-apl] Performance problem ... Blake McBride
- Re: [Bug-apl] Performance problem ... Juergen Sauermann
- Re: [Bug-apl] Performance problem ... Juergen Sauermann
- Re: [Bug-apl] Performance problem with simple program Juergen Sauermann
- Re: [Bug-apl] Performance problem with simple program alexweiner
- Re: [Bug-apl] Performance problem with simple progr... Elias Mårtenson
- Re: [Bug-apl] Performance problem with simple progr... Juergen Sauermann
