Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

printOn: methods should avoid calling blindly printString on their elements... #4856

Open
Ducasse opened this issue Oct 7, 2019 · 0 comments

Comments

@Ducasse
Copy link
Member

commented Oct 7, 2019

since it just creates intermediary streams for nothing.

This is ugly! and slow and consuming memory for nothing.

printOn: aStream

aStream nextPut: $(;
	nextPutAll: g0Size printString; space;
	nextPutAll: g1Size printString; space;
	nextPutAll: g0Leading printString; space;
	nextPutAll: g1Leading printString; space;
	nextPutAll: charSize printString; space;
	nextPutAll: streamPosition printString.
aStream nextPut: $).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.