Changes between Initial Version and Version 1 of Ticket #13400, comment 2


Ignore:
Timestamp:
08/25/12 16:50:55 (7 years ago)
Author:
SimonKing
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13400, comment 2

    initial v1  
    33The reason for the name change I'm suggesting is the observation that quite some objects are created during startup of Sage, and are then garbage collected before even the Sage prompt appears. I think that this indicates potential trouble. I find the following with sage-5.2.beta3+#12313 and its dependencies:
    44
    5 When Sage starts, 37 different objects appearing as ''values'' in a weak value dictionary get removed. Some of the deleted values occur 4 or 8 times. In particular, the "Groupoid with underlying set Symbolic Ring" is deleted 3 times, and the "Groupoid with underlying set Rational Field" is deleted 8 times, before sage even starts. In addition, both CIF['x'] and CC['x'] are created and deleted twice.
     5When Sage starts, 37 different objects appearing as ''values'' in a weak value dictionary get removed. Some of the deleted values occur 3 or 8 times. In particular, the "Groupoid with underlying set Symbolic Ring" is deleted 3 times, and the "Groupoid with underlying set Rational Field" is deleted 8 times, before sage even starts. In addition, both `CIF['x']` and `CC['x']` are created and deleted twice.
    66
    77Perhaps one should emphasize that `UniqueRepresentation` and `UniqueFactory` actually were supposed to have a weak cache, according to the documentation. Nevertheless, some code relies on the fact (the bug) that the documentation was misleading and the cache has been strong.