[Pharo-users] Slow object printOn: with EURO symbol

Hilaire hilaire at drgeo.eu
Sat Jan 2 04:58:37 EST 2016


Hello,

With Pharo3, in an object of mine, I want its text representation to
come with the EURO symbol:

CGMoney>>printOn: aStream
	aStream << (amount asScaledDecimal: 2) greaseString
		<< ' ' << '€'


It appears to be very slow when I browse such collection of objects
(says 1500) from an inspector

Replacing '€' by 'EUR' gives back normal rendering time.

Indeed the '€' is encoded as WideString, so not sure what is happening.
All content converted to WideString or what?


The issue was discussed in the Seaside mailing list and different
suggestions raised as well benchmarks exposing the issue:
http://forum.world.st/TableReport-slow-down-tp4868925.html

I tested these benchs en Pharo 3 and 4 and the performance diagnostics
are the same.

There are matching reports to some extent:
https://pharo.fogbugz.com/f/cases/6639/Buffered-Text-Converters
https://pharo.fogbugz.com/f/cases/14279/EyeInspector-very-slow-on-WideString
https://pharo.fogbugz.com/f/cases/10868/Slow-UTF8-decoding

Nevertheless, the problem of the performance remains.

Thanks

Hilaire

-- 
Dr. Geo
http://drgeo.eu
http://google.com/+DrgeoEu






More information about the Pharo-users mailing list