On 26 Feb 2015, at 14:02, Guillermo Polito <guillermopolito@gmail.com> wrote:
With Camille we spent some minutes introducing a weak slot. A weak slot with a weak reference i.e., it is not taken into account by the garbage collector. If an object is only referenced by weak references it will be garbage collected.
The nice thing about this is that now we can mix transparently weak and non-weak slots inside the same object. For example: Object subclass: #MyWeakThingy slots: { #weakLala => WeakSlot. #normalInstVar } classVariables: { } category: âSlotTestGuille'
Nice! WeakSlot linesOfCode ==> â24"
We also implemented with Camille the #emit* methods to make it a bit faster. A simple benchmark in my machine shows that
We should be able to use the byte code for reading/writing the tempVector here⦠and access the inner array with no message send. (but it needs some API change in IRBuilder where we have them for now just in a version for the tempVector). Marcus