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

Zoltan Somogyi zoltan.somogyi at runbox.com
Mon Dec 1 04:14:53 AEDT 2014


As discussed before, this replaces calls to stream.string_writer.format
with code that implements the optimized version of string.format, and
then calls stream.put on the formatted string.

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.

Zoltan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Log.stream_string_writer
Type: application/octet-stream
Size: 503 bytes
Desc: not available
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20141201/b42bbdb9/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DIFF.stream_string_writer
Type: application/octet-stream
Size: 15150 bytes
Desc: not available
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20141201/b42bbdb9/attachment-0001.obj>


More information about the reviews mailing list