Hello, everyone. I'm experience some performance issue when using clojure. The scenario is as follows:
I have a huge list of xls files to process. I used the org.clojars.boechat107/cloxls to read the files which for each file generates a list(approximately 65,000 elements). Now I need to concatenate all of them. I used (mapcat read-worksheet files) to get the final list, but it soon reports out of heap space. Then I tried to use mutable structures: (doseq [f files] (swap! sheet concat (read-worksheet f))) where sheet is defined as (def sheet (atom []))) But the concat seems to slow down a lot when the list grows larger. I'm wondering if in clojure there is some efficient idiom to handle such situation such as efficient concatenation? Thanks, Bruce Li -- -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.