.
D 2017-12-11T23:50:31.992
J icomment dkf,\sthank\syou\sfor\sthe\squick\sturnaround\son\sthe\srequest\sfor\sreview.\r\n\r\nI've\sremoved\sthe\sline\sin\stclBasic.c,\swhich\swas\sa\smistake,\sand\smodified\sthe\r\n<code>RemoveItem</code>\smacro\sas\ssuggested.\r\n\r\nIn\s<code>AllocObject</code>,\sthe\snote\snext\sto\sthe\sprevious\sdirectly-constructed\r\ncommand\sindicated\sthat\sthe\sperformance\sissue\slay\sin\sstring\smanipulation.\r\n<code>TclNRCreateCommandInNs()</code>,\swhich\shas\sonly\scome\savailable\srecently,\r\nshould\sobviate\sthat\scost.\s\sI\swill\sadd\sprofile\sinformation\sshortly.\r\n\r\nI\sreviewed\sall\sthe\spaths\sthat\scould\sresult\sin\sdeletion\sof\sthe\sobject.\r\nActually,\sharmonization\sof\sthose\spaths\swas\sthe\sgoal\sof\sthis\seffort.\r\n\r\nThe\snew\s<code>DeleteDesendants</code>\sfunction\sand\sthe\sadditional\sreference\r\ncounting\smay\smake\sthe\s<code>IsRoot()</code>\scheck\sunnecessary.\s\sMaybe\sit\scan\sbe\r\nleft\sout\suntil\sthere\sis\sa\stest\sthat\sindicates\sthe\sneed\sfor\sit.\r\n\r\nI've\sadded\sthe\scheck\sfor\sarguments\sto\sthe\sdestructor\sback\sinto\stclOOBasic.c\r\n\r\nThe\snew\sbehaviour\sof\s<code>FOREACH</code>\smay\sindeed\sbe\sunneccessary.\s\sIt\swas\r\nadded\sat\sthe\sbeginning\sof\sthe\swork,\sand\sthe\swork\sevolved\sin\sa\sdirection\sthat\r\nshould\spreclude\sthe\sexistence\sof\sany\s<code>NULL</code>\sentries\sin\sthese\sarrays.\r\nHowever,\sthis\sintroduces\sa\snew\sperformance\scost\sin\s<code>RemoveClass</code>\r\nand\s<code>RemoveObject</code>,\swhich\snow\siterate\sover\sthe\sarray\sin\sorder\sto\r\nremove\sthe\sNULL\sentry.\s\sI\swill\sinvestigate\sthis\sfurther\swhile\sprofiling.
J login pooryorick
J mimetype text/x-fossil-wiki
K 90657479e8f2a76c6603726c25c03a3582402ad8
U pooryorick
Z 400408936940632fb4d5f764deb779be