[Pkg] The Treated Inbox: Collections-ct.995.mcz
commits at source.squeak.org
commits at source.squeak.org
Fri Mar 25 15:32:47 UTC 2022
Christoph Thiede uploaded a new version of Collections to project The Treated Inbox:
http://source.squeak.org/treated/Collections-ct.995.mcz
==================== Summary ====================
Name: Collections-ct.995
Author: ct
Time: 12 March 2022, 2:46:24.947632 am
UUID: 9c697903-e2ac-2244-85cb-5234b3a3c9ca
Ancestors: Collections-mt.994
Accelerates Symbol condenseNewSymbols if there are no new symbols.
=============== Diff against Collections-mt.994 ===============
Item was changed:
----- Method: Symbol class>>condenseNewSymbols (in category 'private') -----
condenseNewSymbols
"Move all symbols from NewSymbols to SymbolTable, and compact SymbolTable."
| originalNewSymbols originalSymbolTable newNewSymbols newSymbolTable |
+ originalNewSymbols := NewSymbols ifEmpty: [^ self].
- originalNewSymbols := NewSymbols.
originalSymbolTable := SymbolTable.
newNewSymbols := WeakSet new.
newSymbolTable := originalSymbolTable copy
addAll: originalNewSymbols;
compact;
yourself.
originalNewSymbols == NewSymbols ifFalse: [
"Some other process has modified the symbols. Try again."
^self condenseNewSymbols ].
NewSymbols := newNewSymbols.
SymbolTable := newSymbolTable!
More information about the Packages
mailing list