[m-rev.] for post-commit review: specialize calls to stream.string_writer.format

Michael Day mikeday at yeslogic.com
Mon Dec 1 08:55:28 AEDT 2014


Hi Zoltan,

> Does anyone (YesLogic, maybe?) have any code that uses stream.string_writer.format heavily enough that its performance
> is important? If yes, then I could try translating these calls the other way,
> calling put on each component of the formatted string as soon as it has been
> formatted, and see if that is faster. It should only take an hour or two of work.

We are not using the stream module, but for PDF output we were calling 
format("%#.4f", [f(F)]) so much that we replaced it with a C call to 
sprintf for speed.

Michael

-- 
Prince: Print with CSS!
http://www.princexml.com



More information about the reviews mailing list