.
D 2024-04-09T18:47:11.398
J icomment >\sWhy\sare\syou\scollecting\sthe\s`baseObj`\sin\sthe\s`ClockFmtScnCmdArgs`\swhen\sit's\sonly\sever\sused\sin\sthe\ssame\sfunction\s...\r\n\r\nIn\smy\sown\sengine\s(where\sI\sback-ported\sit\sfrom),\sbaseVal\s(date->seconds)\sis\sconverted\sto\sseconds\s(and\sothers\sparts)\son\sdemand,\se.\sg.\sto\sbypass\sunneeded\sconversions\sthrough\sthe\sTZ\setc,\sfor\sinstance\sif\sthe\swhole\sdate\sis\sspecified\sin\sinput\sstring.\sAlso\sit\sis\sused\sadditionally\son\sfew\sother\sfunctions,\ssince,\son\smy\sside,\sthis\sobject\sis\snot\snecessarily\san\sinteger\sbut\scan\sbe\sclock-seconds\s(special\stype),\spreviously\sgot\sfrom\sanother\sclock-scan\scalls\s(e.\sg.\sto\sformat\sit\sor\suse\sas\sanother\sbase).<br/>\r\nBecause\sit\swas\stoo\scomplex\sand\salso\stoo\sdifferent\s(since\score-tcl's\sobject\scan\sshimmer,\scannot\sbe\sconverted\sfrom\ssome\stype\sto\sinteger\swithout\sinterim\sstring-representation\setc),\sI\sdecided\snot\sto\sprovide\sthat\slogic\sfirstly.\r\n\r\nHowever\sthis\smentioned\s"on\sdemand\sconversion"\scan\sbe\ssurely\sdone\slater\s(e.\sg.\sit\scould\sspeed-up\sscans\slike\s`clock\sscan\s"2020-01-01\s00:00:00"`\swith\stotally\sunneeded\sbase).\r\n\r\nAnyway,\sI\sdon't\sthink\sit\sbothers\ssomehow\s(moreover\smay\shelp\sby\ssome\sdeep\sdebug\son\sa\sconditional\sBP\setc)...\sAnd\sit's\sdefinitely\snot\sthe\sproblem\sthat\svalgrind\scomplains,\sbecause\sinitially\sopts.baseObj\spointer\sis\s0\s(by\smemset\svia\sClockInitFmtScnArgs)\sand\sthe\ssupposed\splace\swhere\svalgrind\smeans\sit'd\sbe\suninitialized\sis\sa\scondition\sover\scontent\sof\sit\s(bytes\s&\slength),\swhich\sshall\sbe\salways\sinitialized\sin\sproperly\screated\stcl-object\s(no\smatter\sit'd\sbe\slocal\sor\sbelong\sto\ssome\sstructure).\r\n\r\nAs\salready\ssaid\sit\sis\snot\sexplainable\sto\sme,\sand\sI\shoped\sto\sreproduce\sit\sto\sgo\sdeeper,\sjust\sunsuccessful.<br/>\r\nCould\syou\sreproduce\sit\swith\syour\svalgrind,\sDonal?
J login sebres
J mimetype text/x-markdown
K 167e0635db79f05d23d766376f6eed32b1572451
U sebres
Z 789b19d074f131722cca220f1b085d84