.
D 2011-05-15T10:00:16
J assignee msofer
J cmimetype text/plain
J comment Using\s[global]\sinstead\sof\s[::]\sin\sa\sproc\sgives\sa\s7x\sspeedup.\n\n%\sproc\sf\s{}\s{global\szzz;for\s{set\si\s0}\s{$i<10000000}\s{incr\si}\s{incr\szzz}}\n%\sproc\sg\s{}\s{for\s{set\si\s0}\s{$i<10000000}\s{incr\si}\s{incr\s::zzz}}\n%\stime\sf\n871320\smicroseconds\sper\siteration\n%\stime\sg\n\nThis\scan\sbe\straced\sto\sthe\sdifferent\sbytecode\sops\sused:\sin\sthe\stight\sloop,\sthe\s[global]\scase\suses\sa\scompiled\slocal\s(upvarred\sto\sthe\sglobal),\swhile\sthe\sFQN\suses\sloadScalarStk\srepeatedly.\n\nI\swould\shave\sassumed\sthat\sthe\sintrep\scacheing\sof\sthe\sresolved\svarname\sin\sthat\sliteral\svalue\s"::zzz"\swould\ssave\smost\sof\sthe\swork,\sbut\ssomething\selse\smust\sbe\sincreasing\sthe\scost...\n6123508\smicroseconds\sper\siteration\n
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter ferrieux
J subsystem 07.\sVariables
J title Performance\sgap\sbetween\s[global]\sand\s[::]
J type Bug
K 3302370fffffffffffffffffffffffffffffffff
U ferrieux
Z 2797255f9c42c709e41f5d5d8c143b50