Changes between Initial Version and Version 1 of Ticket #715, comment 204


Ignore:
Timestamp:
08/16/12 14:13:49 (9 years ago)
Author:
SimonKing
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #715, comment 204

    initial v1  
    11I have attached a new patch, that changes the way how references are being kept track of.
    22
    3 First of all, as I have explained in my long post today, it is important for speed that the buckets of `TripleDict` only know the location of the keys in dictionary. Hence, references (weak or strong, depending on the type of keys) need to be stored somewhere else.
     3First of all, as I have explained in my long post today, it is important for speed that the buckets of `TripleDict` only keep track of the memory locations of the keys. Hence, references (weak or strong, depending on the type of keys) need to be stored somewhere else.
    44
    55Previously, there was a global dictionary, that was shared by all `TripleDicts`. That probably was a bad idea, for the reasons you pointed out. Now, the references are stored in a dictionary that is an attribute of each `TripleDict`.