This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Do inner classes contadict structural sharing?

No replies
Peter 2
Joined: 2011-02-16,
User offline. Last seen 42 years 45 weeks ago.

In order to speed up operations yielding new scalax.collection.Graph
instances, it would be nice for Graph instances to structurally share
data just like List, Set etc. manage to. But how could structural
sharing be achieved despite nodes and edges being represented by inner
class instances?

Peter

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland