Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000808 [Croquet] Any minor always 01-08-05 17:24 01-08-05 17:24
Reporter Bob Arning View Status public  
Assigned To
Priority normal Resolution open  
Status new  
Summary 0000808: Deleting a TeapotMorph is slow (over 3 seconds for me)
Description "TCleanup run" seems to be out of date:
-----
    "Odd problems from before 3.2 got finalized"
    (Smalltalk keys select:[:k| k class == String]) do:[:k| Smalltalk removeKey: k].
    Smalltalk garbageCollect.
    Behavior flushObsoleteSubclasses.
-----
1. This may not be needed (3.2?) and the extra garbageCollect makes it rather sluggish.
2. Behavior flushObsoleteSubclasses doesn't completely work since Metaclass has its own implementation of #obsoleteSubclasses that doesn't do the cleanup that the Behavior version does.

Additionally, #allInstancesDo: is sent three times. Might be nice to do something a little faster.


Additional Information  - 199 tallies, 3263 msec.

**Tree**
59.3% {1935ms} BobsSceneThing(TeapotMorph)>>delete
  |57.8% {1886ms} TCleanup class>>run
  | 42.7% {1393ms} Behavior class>>flushObsoleteSubclasses
  | 13.6% {444ms} WorldState class(Behavior)>>allInstancesDo:
  | 7.5% {245ms} WorldState(ProtoObject)>>nextInstance
  | 4.5% {147ms} TRFBMonitor class(Behavior)>>someInstance
40.7% {1328ms} MessageTally class>>spyOn:
  40.7% {1328ms} MessageTally>>spyEvery:on:
    40.7% {1328ms} Array(SequenceableCollection)>>keysAndValuesDo:

**Leaves**
42.7% {1393ms} Behavior class>>flushObsoleteSubclasses
40.7% {1328ms} Array(SequenceableCollection)>>keysAndValuesDo:
7.5% {245ms} WorldState(ProtoObject)>>nextInstance
4.5% {147ms} TRFBMonitor class(Behavior)>>someInstance

**Memory**
    old -390,052 bytes
    young -182,592 bytes
    used -572,644 bytes
    free +3,870,436 bytes

**GCs**
    full 2 totalling 2,641ms (81.0% uptime), avg 1321.0ms
    incr 2 totalling 5ms (0.0% uptime), avg 3.0ms
    tenures 0
    root table 0 overflows
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
01-08-05 17:24 Bob Arning New Issue


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
27 total queries executed.
24 unique queries executed.
Powered by Mantis Bugtracker