[squeak-dev] The Inbox: Collections-ct.995.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Mar 12 01:49:04 UTC 2022

A new version of Collections was added to project The Inbox:

==================== 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') -----
  	"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;
  	originalNewSymbols == NewSymbols ifFalse: [
  		"Some other process has modified the symbols. Try again."
  		^self condenseNewSymbols ].
  	NewSymbols := newNewSymbols.
  	SymbolTable := newSymbolTable!

More information about the Squeak-dev mailing list