Skip to content
Tcl Source Code Artifact [6ecfe7e77f]
Login

Artifact [6ecfe7e77f]

Artifact 6ecfe7e77f2ea45602a404eea81a13c6c42e82f7:

Ticket change [6ecfe7e77f] - Ticket [1767293fffffffff|1767293fff] <i>Bad performance using ** operator with integer operands</i> status still Open with 4 other changes by kennykb on 2007-08-07 05:36:58.
D 2007-08-07T05:36:58
J icomment Logged\sIn:\sYES\s\nuser_id=99768\nOriginator:\sNO\n\nOn\sWin32\s(mingw),\sthe\spatch\sis\sobserved\sto\sfix\sthe\sperformance\sanomaly:\n\n%\stime\s{expr\s{5*5}}\s100000\n0.63991\smicroseconds\sper\siteration\n%\stime\s{expr\s{5**2}}\s100000\n0.62671\smicroseconds\sper\siteration\n%\stime\s{expr\s{pow(5,2)}}\s100000\n1.68862\smicroseconds\sper\siteration\n%\stime\s{expr\s{5*5*5*5*5}}\s100000\n0.91689\smicroseconds\sper\siteration\n%\stime\s{expr\s{5**5}}\s100000\n0.72139\smicroseconds\sper\siteration\n%\stime\s{expr\s{pow(5,5)}}\s100000\n1.65471\smicroseconds\sper\siteration\n\nThe\sperformance\spenalty\sis\sstill\sthere\swhen\squantities\soverflow\sfrom\sa\s32-bit\sinteger;\swe're\sstill\sworking\son\sthat\sone:\n\n%\stime\s{expr\s{3**19}}\s100000;\s#\sthis\sfits\sin\sa\s32-bit\sword\n0.61131\smicroseconds\sper\siteration\n%\stime\s{expr\s{3**20}}\s100000;\s#\sthis\sdoesn't\n5.84269\smicroseconds\sper\siteration\n\n\n
J login kennykb
J mimetype text/plain
J username kennykb
K 1767293fffffffffffffffffffffffffffffffff
U kennykb
Z e3adfd126bdf0a99658c4a0a744fd68e