.
D 2025-07-22T16:48:56.444
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment Working\son\sthe\sfix\sfor\suse-after-free\sbug,\sI\snoticed\sthat\sthere\sis\sperformance\spenalty\sby\screation\s(and/or\sdeletion)\sof\sinterp.\r\n\r\nHere\sis\sthe\scomparison\s<b\sstyle="color:red">9.0\s(-)</b>\svs\s<b\sstyle="color:green">8.6\s(+)</b>:\r\n\r\n<code><pre>\r\n\s\s%\stimerate\s{interp\screate\si;\sinterp\sdelete\si}\s5000\r\n<b\sstyle="color:red">-\s3574.98\sµs/#\s1398\s#\s279.72\s#/sec\s4997.816\snet-ms</b>\r\n<b\sstyle="color:green">+\s1756.77\sµs/#\s2846\s#\s569.23\s#/sec\s4999.777\snet-ms</b>\r\n<br>\s\s#\sstill\sworse\sit\slooks\swith\ssafe\sinterp:\r\n\s\s%\stimerate\s{interp\screate\s-safe\si;\sinterp\sdelete\si}\s5000\r\n<b\sstyle="color:red">-\s1228.34\sµs/#\s4070\s#\s814.11\s#/sec\s4999.341\snet-ms</b>\r\n<b\sstyle="color:green">+\s460.025\sµs/#\s10869\s#\s2173.8\s#/sec\s5000.009\snet-ms</b>\r\n</pre></code>\r\n\r\nHowever\s8.7\sseems\sto\shave\sthe\ssame\s"bottleneck"\s(although\sa\sbit\sfaster).\r\n\r\nI\shad\sa\s9.x-based\sbranch\swith\slazy\sload\sof\sclock,\sOO\sand\sfew\sother\sstuff...\sit\sis\ssignificantly\sfaster,\sbut\sanyway\sa\sbit\sslower\sthan\s8.6...\r\n\r\nSince\sI\sdon't\shave\stime\sright\snow\sto\sprofile\sit,\sbut\sit\slooks\ssignificant,\sI\slet\sit\shere\sas\sa\sticket.
J foundin 9.0+
J is_private 0
J login sebres
J priority 5\sMedium
J private_contact 50e9528765c18296566374b3fde2df942c394efd
J resolution None
J severity Minor
J status Open
J submitter sebres
J subsystem 38.\sInit\s-\sLibrary\s-\sAutoload
J title Performance\spenalty\sby\screation\sof\sinterp\scompared\sto\sold\sversions
J type Bug
K 62019f8aa9f5ec73743be6f7d90f3b346c8cd29b
U sebres
Z 7854e5c76de92f660f4323485769f129