Home Segments Index Top Previous Next

422: Sidetrip

Note that in the bag in Segment 421, the two instances of 720 seem to have been brought together into adjacent positions. Actually, 720 is stored just once in the bag, with a count of how many times it is to be viewed as appearing in the bag. Smalltalk records duplicate entries in this way to save memory and to increase access speed.