Overview
| Artifact ID: | cc3ba2e77552062b3459e53c7fcbe64d17b3cdcc |
|---|---|
| Ticket: | 1665628fffffffffffffffffffffffffffffffff
destructive scan of a ByteArray |
| User & Date: | dkf on 2009-02-05 16:34:34 |
Changes
- icomment:
I've enhanced Tcl_AppendObjToObj so that it does byte array concatenation safely and (reasonably) efficiently. It only does this optimization when both objects are bytearrays *and* the object being updated has no string rep (not a big problem; bytearrays don't usually have one unless people do things like printing them out for debugging purposes) - without that safety constraint, the string-based formal semantics of the routine is circumventable. This makes [append] of bytearrays to a variable containing a bytearray much faster according to my (informal) timing. Other basic operations still need work, so leaving this issue open.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"