.
D 2008-01-16T00:00:11
J icomment Logged\sIn:\sYES\s\nuser_id=80530\nOriginator:\sNO\n\n\n1)\sNo\slimit.\s\sYes,\sover\stime\sa\sprogram\sthat\screates\smany\n\s\s\sliterals\scan\sgrow\sin\smemory\sfootprint.\s\sThis\sis\snothing\snew.\n\n2)\sThe\sfundamental\sreason\sis\sthat\syou\shave\sfailed\sto\sbrace\n\s\s\sthe\sexpression.\s\sThis\smeans\severy\sevaluation\sof\s[expr]\n\s\s\sis\screating\san\sexpression\sstring,\sparsing\sthat\sexpression\n\s\s\sstring\s(which\screates\sliterals),\sand\sonly\sthen\scompiling\n\s\s\sand\sexecuting\sthe\sbytecode.\s\sA\sproperly\sbraced\sexpression\n\s\s\swould\sparse\sand\scompile\sonly\sone\stime,\sand\slet\sthe\schanging\n\s\s\scontents\sof\sa\svariable\sproduce\schanging\sexpression\sresults\n\s\s\swhen\sexecuting\sthe\ssame\sbytecode\sagain\sand\sagain.\n\s\s\sUsing\s[+]\sis\smore\slike\sa\sbraced\sexpression\sthan\san\sunbraced\n\s\s\sexpression.\s\sFor\sthis\sexample,\sthey\sproduce\s(nearly?)\sthe\n\s\s\ssame\sbytecode.\n\nAlthough\sthere's\sno\sbug\shere,\sit\sdoes\sraise\sthe\sgeneral\squestion\nof\sliteral\slifetime\swhich\smight\sbe\sworth\slooking\sinto.\n
J login dgp
J mimetype text/plain
J username dgp
K 1869989fffffffffffffffffffffffffffffffff
U dgp
Z afb1619bde8f1187aeb9bc83565baf07