I call clojure.core / time, which is documented as "Calculates expr and prints the time it takes. Returns the value of expr"
For instance:
(time (expensive))
Macro expansion shows that it stores the value as let so after printing the time that it should immediately return with the value in the let expression.
When I make a call, but with an expensive calculation, I see a delay, and then return the time, but then I must wait a considerable time (sometimes +10 seconds or more) for the result to appear.
Can anyone explain what is going on here?
PS: clojure 1.3.0 is used, if that matters.
source share