Good point about multi-gen. Lars Hansen even researched "oldest first" collection:

http://www.cesura17.net/~will/professional/research/presentations/gc/index.html

Clearly, Ungar's model was a simplification, with trade-offs as expected.


Allen Wirfs-Brock wrote:
My main take-away from this discussion is that not have a 'clear' method on 
WeakMap/Set is indeed a simpler semantics and hence leaves GC designers more 
optimization opportunities.

Agreed. And we can always add .clear later. The worst case, where some leading implementation (oh, say, V8) adds it sooner, just forces the conclusion. But we should not force that conclusion now, absent evidence.

/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to