Skip to content
Tcl Source Code Artifact [5c2379c3a6]
Login

Artifact [5c2379c3a6]

Artifact 5c2379c3a645ee8770415acc71e84235b19add9f:

Ticket change [5c2379c3a6] - Ticket [3397978fffffffff|3397978fff] <i>Ensembles force argument sharing</i> status still Open with 6 other changes by sebres on 2017-08-16 16:14:19.
D 2017-08-16T16:14:19.021
J closer nobody
J comment Was\sobserved\swhile\spursuing\s3396731\sthat\r\n[string\sreverse\s$foo]\salways\sreaches\sthe\scommand\r\nprocedure\swith\s$foo\sa\sshared\svalue\swhile\r\n[tcl::string::reverse\s$foo]\scan\sdeliver\san\sunshared\r\nvalue\sto\sthe\scommand\sprocedure.\r\n\r\nIf\susing\sensembles\sreduces\svalue\ssharing\sin\sthis\r\nway,\sthat\smight\shave\sunwelcome\simpacts.\s\sRequest\r\nwe\sexamine\sand\ssee\swhat's\spossible\shere.\r\n\r\nUnexamined,\soff-the-wall\sthought:\s\sdo\swe\sneed\sto\r\nimplement\sensemble\sdispatch\sin\sterms\sof\stailcall\r\nto\simprove\sthis?
J icomment Just\sas\snotice\sto\sme.\r\nFixed\sin\ssebres-rewrite-ensemble\sresp.\ssebres-perf-branch\s(should\sbe\sstill\srebased\sto\sfossil\sfrom\sgit).\r\n\r\nReason:\r\n-\sthe\sfirst\sreference\sincrement\soccurred\sif\sthe\sparameters\sgoing\sin\sthe\scall\sstack\sof\s"ens\scmd"\s(mostly\snot\scompiled\sonly,\sbut\ssometimes\scompiled\salso);\r\n-\sthe\ssecond\sincrement\sby\sthe\sensemble\srewrite\s(within\sinstruction\r\nINST_INVOKE_REPLACE),\sif\sreplaced\sto\sthe\scall\s"::tcl::ens::cmd"\sduring\sthe\sexecution.\r\n\r\nAnnoying\sthat\sthis\saffects\scurrently\sthe\sperformance\sin\s2\sways:\r\n-\sfirstly\sit\scauses\san\sunnecessary\shandling,\sbecause\sof\sthe\sshared\sstate\sof\sgiven\sobjects\s(objects\sduplication,\smemory\seffort,\scpu-cache\swashout\setc).\r\n-\ssecondly\scauses\sadditional\sexecution\soverhead\s(create/release\sthe\slist\sof\sarguments),\ssee\smy\slast\scomment\s(2017-01-04)\son\sticket\s[3485833].
J login sebres
J mimetype text/x-fossil-wiki
J severity Minor
K 3397978fffffffffffffffffffffffffffffffff
U sebres
Z 21a2137f1f4450af556739a9dc791069