[m-rev.] for post-commit review: speed up string.format for integers some more

Zoltan Somogyi zoltan.somogyi at runbox.com
Wed Nov 12 20:00:42 AEDT 2014


This diff speeds up formatting integers by another 12% or so,
taking the time on that benchmark down to

15.841u 0.007s 0:15.86 99.8%	0+0k 0+0io 0pf+0w
16.051u 0.004s 0:16.06 99.9%	0+0k 0+0io 0pf+0w

Does anyone have an objection to raising the limit mentioned
in the diff from 2^15-1 to 2^31-1, i.e. to assuming that
Mercury platforms have at least 32 bit integers?

Zoltan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Log.str_int2
Type: application/octet-stream
Size: 768 bytes
Desc: not available
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20141112/a47ff45c/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DIFF.str_int2
Type: application/octet-stream
Size: 10548 bytes
Desc: not available
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20141112/a47ff45c/attachment-0001.obj>


More information about the reviews mailing list