> user=> (defstruct desilu :fred :ricky) > #'user/desilu > user=> (def x (map (fn [n] > (struct-map desilu > :fred n > :ricky 2 > :lucy 3 > :ethel 4)) > (range 1000000))) > #'user/x > user=> (time (reduce (fn [n y] (+ n (:fred y))) 0 x)) > Exception in thread "main" java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown > Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at jline.ConsoleRunner.main(ConsoleRunner.java:69) > Caused by: java.lang.OutOfMemoryError: Java heap space
I'm not sure how to do it in your configuration, but you need to as -Xmx<SomeLargeNumber>M to your java invocation. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
