Re:Clojure Tradeoffs
by cgag on Wednesday June 26, 2013 @02:04AM
(#5944435)
Just iterating doesn't make any copies. Replace iterating over with modifying.
Efficient immmutable data structures are easily one of Clojure best features. Easiest trade off ever (though the actual hit to performance isn't that bad) imo.
Re:Clojure Tradeoffs
by dragandj on Wednesday June 26, 2013 @04:44AM
(#5944830)
Not only that, but you can also make a persistent structure locally transient for the duration of the (modifying) iteration, so in lots of cases you do not have to pay the persistence penalty.
Efficient immmutable data structures are easily one of Clojure best features. Easiest trade off ever (though the actual hit to performance isn't that bad) imo.