Well read can (read) from a stream and if you don't serialize your data structure in one huge pile:
[1] [1] [1] [1] vs. [[1] [1] [1] [1]] you can read it lazily. See http://github.com/Licenser/stupiddb/blob/master/src/stupiddb/core.clj#L75 for an example. regards, Heinz On May 24, 2010, at 14:25 , Michael Jaaka wrote: > Hello! > > I need symmetric function to prn (reads line of expression from binded > *in* and constructs data structure - just like load-string does it now > from a string). > > Right now I store data with prn to a file. > > Then read it with buffered reader and load-string. > Reading in this case is very ineffective due to > > readString(String s){ > PushbackReader r = new PushbackReader(new StringReader(s)); > > in clojure.lang.RT > > Anyone has solution? > > Note that I need to create lazy sequences of "deserialized" clojure > data structures for processing, so using load-reader is not sufficient. > > -- > 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 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