Changes between Version 2 and Version 5 of Ticket #18426
- Timestamp:
- 10/09/20 13:41:12 (20 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #18426
- Property Cc slelievre added
-
Ticket #18426 – Description
v2 v5 2 2 3 3 Upon creating a root system, say of type B3, this line: 4 {{{ #!python4 {{{ 5 5 self.dual = RootSystem(self._cartan_type.dual(), as_dual_of=self); 6 6 }}} … … 12 12 sage: import gc 13 13 sage: gc.collect() 14 91 14 349 15 15 sage: pre = {id(a) for a in gc.get_objects()} 16 16 sage: get_memory_usage() 17 1022.789062518 sage: for n in range(5, 3000):19 RS = RootSystem(['A',n])20 ....: 17 8697.9453125 18 sage: for n in range(5, 3000): 19 ....: RS = RootSystem(['A', n]) 20 ....: 21 21 sage: gc.collect() 22 0 22 106 23 23 sage: get_memory_usage() 24 1031.35937524 8703.08984375 25 25 sage: post = Counter(str(type(a)) for a in gc.get_objects() if id(a) not in pre) 26 sage: [p for p in post.iteritems() if p[1] > 2000]27 [("<class ' weakref.KeyedRef'>", 8985),28 ("<class 'sage.combinat.root_system. type_A.CartanType'>", 2994),29 ("<class 'sage.combinat.root_system. root_system.RootSystem'>", 5990),30 ("< type 'dict'>", 6012),31 ("< type 'tuple'>", 29952)]32 }}}26 sage: sorted([p for p in post.items() if p[1] > 2000]) 27 [("<class 'dict'>", 6123), 28 ("<class 'sage.combinat.root_system.root_system.RootSystem'>", 5985), 29 ("<class 'sage.combinat.root_system.type_A.CartanType'>", 2991), 30 ("<class 'tuple'>", 30460), 31 ("<class 'weakref.KeyedRef'>", 9003)] 32 }}}