[squeak-dev] The Trunk: Files-ul.186.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Jan 25 15:48:28 UTC 2021


Levente Uzonyi uploaded a new version of Files to project The Trunk:
http://source.squeak.org/trunk/Files-ul.186.mcz

==================== Summary ====================

Name: Files-ul.186
Author: ul
Time: 25 January 2021, 4:46:58.396742 pm
UUID: 2ae84c53-ba51-4aa6-9840-891243638cc6
Ancestors: Files-dtl.185

- speed up StandardFileStream >> #upToEnd by reading the remaining data all at once

=============== Diff against Files-dtl.185 ===============

Item was changed:
  ----- Method: StandardFileStream>>upToEnd (in category 'read, write, position') -----
  upToEnd
  	"Answer a subcollection from the current access position through the last element of the receiver."
  
+ 	^self next: self size - self position!
- 	^self collectionSpecies streamContents: [ :newStream |
- 		| next |
- 		[ (next := self next) == nil ] whileFalse: [
- 			newStream nextPut: next ] ]!



More information about the Squeak-dev mailing list