<i>Minor optimsations for Tcl_DStringAppend usage.</i> status still Open with 5 other changes
by
.
D 2005-07-29T05:04:06
J icomment Logged\sIn:\sYES\s\nuser_id=80530\n\n\nThe\sdocs\saren't\sexplicit\sabout\sit\n(perhaps\sbecause\sthey\sare\sso\sold),\nbut\sI\sdon't\sbelieve\sthe\sTcl_DString*\nroutines\swere\sever\sintended\sto\nsupport\sembedded\sNUL\sbytes\swithin\nthe\sdynamic\sstrings.\n\nThe\scomment\son\sthe\s"length"\sfield\nof\sthe\sTcl_DString\sstruct\s(in\stcl.h)\nreads:\n\n\s\sNumber\sof\snon-NULL\scharacters\sin\sthe\sstring\n\nThat\ssaid,\sit's\sclear\sthat\scallers\sof\nTcl_DStringAppend()\sand\nTcl_DStringSetLength()\scould\sleave\nNUL\sbytes\swithin\sthe\s"length"\sof\sthe\nstring.\n\nWise\sor\snot,\sthe\sTcl_DString*\sroutines\nare\sfairly\slow\slevel\sand\shave\sa\slong\nhistory\sof\sexposing\sthat\scapability.\nIf\sit\sgets\stoo\stroubling,\sjust\smake\suse\nof\sTcl_Obj's\sfor\syour\sdynamically\nsized\sstring\svalues.\n\n
J login dgp
J mimetype text/plain
J priority 3\sLow
J username dgp
K 1246897fffffffffffffffffffffffffffffffff
U dgp
Z a183147ab1687e2c2f37ee427111c943