https://rosettacode.org/wiki/Countdown#J

   task''
terms: 4 7 8 9 10 10
target: 300
#solutions: 1213
for example: (10+(9*10))*((4+7)-8)

The #solutions line takes approaching 20 seconds. That's not the problem here.

The 'for example' line takes several seconds in J903 (and J904). And
the expression is
   echo 'for example: ',;{.a

The only thing I can think of is that this time is occupied by garbage
collection.

FYI,

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to