Reflection warning, NO_SOURCE_PATH:52 - call to aclone can't be resolved.
Reflection warning, NO_SOURCE_PATH:52 - call to alength can't be resolved.
Reflection warning, NO_SOURCE_PATH:52 - call to aget can't be resolved.
Reflection warning, NO_SOURCE_PATH:52 - call to aset can't be resolved.
"Elapsed time: 2663.612 msecs"
Type hinting the arrays:
(time (amap ^ints an-array idx ret (+ (int 1) (aget ^ints an-array idx))))
"Elapsed time: 11.443 msecs"
Whenever you see unusually slow performance reflection is frequently the cause.
Not sure about the 1.1/1.2 performance though.