Skip to content
Tcl Source Code Artifact [3dbdbaa10c]
Login

Artifact [3dbdbaa10c]

Artifact 3dbdbaa10cff6ef9500a04c24af9c165f356545f1192c0d3e768873422fac4d6:

Ticket change [3dbdbaa10c] - Ticket [f2ff05fc8411be80|f2ff05fc84] <i>Usage of static systemEncoding is not thread safe (vulnerability)</i> status still Open with 3 other changes by sebres on 2024-04-26 14:27:32.
D 2024-04-26T14:27:32.346
J icomment I\sbackported\sparts\sof\smy\stcl-fork\sresponsible\sfor\sencoding\sin\s[./timeline?r=sebres-encoding-perf-branch|sebres-encoding-perf-branch],\swhich\sfixes\sthis\sissue\s(it\sis\s8.5\sbased,\sbecause\sit\swas\sinitially\simplemented\sto\sthat\sbranch\son\smy\sside).\r\n\r\nThis\salso\sprovides\sa\sperformance\stests\s<i></i>\sshowing\sgrave\simprovement\sof\sthat\sbranch\sfor\sall\sencoding\soperations\s(up\sto\s1000x).\sHere\sis\ssmall\sexcerpt\sillustrating\sthat:\r\n<pre\sstyle="font-family:monospace;\sfont-size:85%">\r\n\s\s********************************************************************************\r\n<b\sstyle="color:red">-\sTotal\s8\scases\sin\s2.06\ssec.\s(1.86\snet-sec.):</b>\r\n<b\sstyle="color:green">+\sTotal\s8\scases\sin\s2.05\ssec.\s(1.82\snet-sec.):</b>\r\n<b\sstyle="color:red">-\s1734.821698\sµs/#\s5967895\s#\s3201857.947\s#/sec\s1863.885\snet-ms</b>\r\n<b\sstyle="color:green">+\s2.314888\sµs/#\s8030184\s#\s4423539.522\s#/sec\s1815.330\snet-ms</b>\r\n\s\sAverage:\r\n<b\sstyle="color:red">-\s216.852712\sµs/#\s745986\s#\s3201849\s#/sec\s232.986\snet-ms</b>\r\n<b\sstyle="color:green">+\s0.289361\sµs/#\s1003773\s#\s4423544\s#/sec\s226.916\snet-ms</b>\r\n\s\sMin:\r\n<b\sstyle="color:red">-\s0.124842\sµs/#\s1692545\s#\s8010151\s#/sec\s211.300\snet-ms</b>\r\n<b\sstyle="color:green">+\s0.125721\sµs/#\s1681033\s#\s7954126\s#/sec\s211.341\snet-ms</b>\r\n\s\sMax:\r\n<b\sstyle="color:red">-\s478.994\sµs/#\s522\s#\s2087.7\s#/sec\s250.035\snet-ms</b>\r\n<b\sstyle="color:green">+\s0.550516\sµs/#\s435911\s#\s1816477\s#/sec\s239.976\snet-ms</b>\r\n\s\s********************************************************************************\r\n...\r\n\s\s********************************************************************************\r\n<b\sstyle="color:red">-\sTotal\s2\scases\sin\s0.52\ssec.\s(0.50\snet-sec.):</b>\r\n<b\sstyle="color:green">+\sTotal\s2\scases\sin\s0.52\ssec.\s(0.47\snet-sec.):</b>\r\n<b\sstyle="color:red">-\s720.021000\sµs/#\s1391\s#\s2778.577\s#/sec\s500.616\snet-ms</b>\r\n<b\sstyle="color:green">+\s0.774522\sµs/#\s1317842\s#\s2805745.869\s#/sec\s469.694\snet-ms</b>\r\n\s\sAverage:\r\n<b\sstyle="color:red">-\s360.010500\sµs/#\s695\s#\s2777\s#/sec\s250.308\snet-ms</b>\r\n<b\sstyle="color:green">+\s0.387261\sµs/#\s658921\s#\s2805746\s#/sec\s234.847\snet-ms</b>\r\n\s\sMin:\r\n<b\sstyle="color:red">-\s353.664\sµs/#\s708\s#\s2827.5\s#/sec\s250.394\snet-ms</b>\r\n<b\sstyle="color:green">+\s0.274761\sµs/#\s839609\s#\s3639523\s#/sec\s230.692\snet-ms</b>\r\n\s\sMax:\r\n<b\sstyle="color:red">-\s366.357\sµs/#\s683\s#\s2729.6\s#/sec\s250.222\snet-ms</b>\r\n<b\sstyle="color:green">+\s0.499761\sµs/#\s478233\s#\s2000958\s#/sec\s239.002\snet-ms</b>\r\n\s\s********************************************************************************\r\n</pre>
J login sebres
J mimetype text/x-fossil-wiki
K f2ff05fc8411be80a93913b2b065f2c85fa9bcf0
U sebres
Z e64ce8f996ff9add3469d10763117b6d