
Jan. 20, 2016
7:31 p.m.
there is also the problem that you don't want it on all dicts. So having two extra words is more to pay than having extra objects (also, comparison is cheaper for guards) On Wed, Jan 20, 2016 at 8:23 PM, Yury Selivanov <yselivanov.ml@gmail.com> wrote:
On 2016-01-20 2:09 PM, Maciej Fijalkowski wrote:
You don't free a version tag that's stored in the guard. You store the object and not id
Ah, got it. Although for my current cache design it would be more memory efficient to use the dict itself to store its own unique id and tag, hence my "ma_extra" proposal. In any case, the current "ma_version" proposal is flawed :(
Yury