I have an issue with an OutOfMemory error with bigger sets and the subsets command.
I have bigger sets of 1000+ elements and want to lazily create all possible subsets of this set in order to filter out some that are interesting to me.
I was very happy to run into your library as it handles the heavy lifting for me and I only have to do the filtering. Nice!
But if I run this sample code
it returns with an OutOfMemory Error to me.
I thought the memory usage of subsets would be constant as the function should return a lazy list.
It would be really nice if this library could calculate subsets of bigger lists without running into memory problems.
I posted this question on StackOverflow with more information:
And people replied that they don't have this issue. Is this an issue with my platform or is this an issue with the memory usage of subsets?
It would be great if you could show me a way to get around this issue.
If I can be of any help, just let me know.
Mac OS X 10.8.3
Clojure 1.5.1 (installed with homebrew)
Leiningen 2.1.3 on Java 1.6.0_45 Java HotSpot(TM) 64-Bit Server VM
% java -version
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06-451-11M4406)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01-451, mixed mode)