Closed jgaskins closed 10 years ago
This will be a relatively easy fix (just revert the commit that caused IdentityMap
to duplicate objects), but it means that dirty tracking needs to be implemented in another way.
Fixed in 6e157f0047877d1699b37259396fedda8922211b
Originally, this is how
Perpetuity::IdentityMap
worked, but then I began using it for dirty tracking, which was the wrong choice because it meant it has to duplicate the object.An Identity Map is meant to return the same object instance to eliminate the effect of aliasing (updating two different instances of the same object).