Unrealized lazy sequence...
user=> (def mm (filter even? (range 100000))) #'user/mm user=> (mm/measure mm) "160 B" Realized... user=> (count mm) 50000 user=> (mm/measure mm) "1.8 MB" Structural sharing? user=> (def nn (drop 25000 mm)) #'user/nn user=> (mm/measure nn) "1.8 MB" user=> (mm/measure [mm nn]) "1.8 MB" Can we free some of that memory? user=> (def mm nil) #'user/mm user=> (mm/measure nn) "1.8 MB" user=> (System/gc) nil user=> (mm/measure nn) "1.8 MB" -- 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/d/optout.