Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2b37b30b61f5da3db5c141edfc796852dcf2aee6
Ticket: 1352382fffffffffffffffffffffffffffffffff
Patch: efficiency saving in Tcl_CreateNamespace
User & Date: nobody on 2005-11-09 17:09:14
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    The code building the fully qualified namespace name in 
    Tcl_CreateNamespace unnecesarily copies buffer1 and 
    buffer2 back and forth. By using Tcl_DString pointers, 
    you can swap pointers instead of copying one buffer to 
    the other. This saves a call to TclDStringSetLength & 
    one to Tcl_DStringAppend. Also the strlen(name) can be 
    avoided as we have the DString's length.
    Patch also includes some other minor efficiency 
    changes.
    
    (the patch is against 8.5a3)
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "None"
  10. title changed to: "Patch: efficiency saving in Tcl_CreateNamespace"
  11. type changed to: "Patch"