Hi Avram, Assuming you're using the Sun/Oracle JDK, you can increase the size of the Java heap with the -Xmx command-line option. For example:
java -Xmx512mb -cp clojure.jar:your-source-dir clojure.main Will run Java with a 512 MB heap. This increases the amount of memory available to your program. Obviously, you don't want the heap to be larger than the available RAM. With Leiningen, you can add the :jvm-opts option in project.clj, as shown here: https://github.com/technomancy/leiningen/blob/master/sample.project.clj#L142 More generally, this line: (def signals (vec ...)) says that you want the entire result, as a vector, stored as the value of the Var `signals`. That means your entire result data must fit in the Java heap. For a 37 MB file, that's not unreasonable, but as soon as your file gets larger than your available RAM, you'll have to come up with an alternate approach. -Stuart Sierra clojure.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en