Overview
| Artifact ID: | d2fa4dce857ec6b80ad803142d5f96ce391c3fc5 |
|---|---|
| Ticket: | 1246897fffffffffffffffffffffffffffffffff
Minor optimsations for Tcl_DStringAppend usage. |
| User & Date: | dkf on 2005-07-29 15:56:11 |
Changes
- icomment:
Logged In: YES user_id=79902 The encoding subsystem relies on the fact that DStrings can hold NUL bytes. The DString system serves multiple purposes, some of which are obsolete these days. It is both a way of having safely managed buffers and a mechanism for doing some string manipulations that was heavily used back in Tcl 7.* (and before?) but which has been largely superceded for this latter purpose these days by the Tcl_Obj system. I'm fairly strongly inclined to leave things as they are unless the code in question is on some performance critical path: easier maintenance beats shaving a few nanoseconds from a location where it will get swamped by some syscall...
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"