These are chat archives for typelevel/general
General topics relating to the the Typelevel project http://typelevel.org/ | See also individual project channels | Code of conduct http://typelevel.org/conduct.html
With a persistent data structure, do we know if Scala can garbage collect if we do
val m1 = Map(1 -> 'x') val m2 = Map(1 -> 'x') + 1 -> 'y'
Is the intermediate value used to construct
m2 available for garbage collection? Or, does
m2 take up more space than
m1 because the structure doesn't make it easy for
(1 -> 'x') to be garbage collected?
m1if not referenced elsewhere will be garbage-collected, because immutable maps are special-cases for ≤ 4 elements
Dietin dogs was something I looked at, and I seem to recall there was something about what that provided that was insufficient.
Dietcorrectly, but it seems like it acts more like a set that could represent a single discontinuous feature along the genome.