<i>cannot efficiently modify a ByteArray</i> status still Open with 4 other changes
by
.
D 2007-02-22T22:07:12
J icomment Logged\sIn:\sYES\s\nuser_id=80530\nOriginator:\sNO\n\n\nWhile\sthe\sobservations\sappear\sto\nbe\scorrect,\sand\swe\sshould\sconsider\naddressing\swhat\swe\scan...\n\n...the\sway\sto\savoid\sthese\sproblems\nis\sto\snot\suse\sa\s"buffer"\sin\sthe\nfirst\splace,\sI\sthink.\s\sTcl\sis\snot\nC\sand\sC\scoding\spatterns\soften\sdon't\nmap\swell\sonto\sit.\n\nInstead\sof\sone\shuge\s[read]\sinto\sa\n"buffer"\sfrom\swhich\syou\sstruggle\nto\sprocess\sthings\sdue\sto\ssome\nlimitations\sand\sinefficiencies\nof\sthe\sbase\scommands,\swhy\snot\nonly\s[read]\sas\smany\sbytes\sas\syou\nneed\sat\sa\stime\sto\sdo\swhat\syou\sneed\s\nto\sdo?\n\nbinary\sscan\s[read\s$sock\s4]\sI\sdlen\nbinary\sscan\s[read\s$sock\s$dlen]\sa*\sdata\n\nI\sthink\sthe\savailability\sof\sthis\nsimple\sworkaround\sis\swhy\swe\shaven't\snoticed\nthese\sissues\smuch\sbefore.\n\n
J login dgp
J mimetype text/plain
J username dgp
K 1665628fffffffffffffffffffffffffffffffff
U dgp
Z fa1290b3fe8ec6fdc92ba113dd7d7e73