Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6de0c6260331e28ef7972e1c8d46c00fcb1b1eac
Ticket: 1515234fffffffffffffffffffffffffffffffff
Removing commas is slimming!
User & Date: afredd on 2006-06-30 16:41:46
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    There are a large number of cases where string literals
    passsed to vararg functions are split over multiple
    lines but with a comma separating them. The most common
    are in calls to Tcl_AppendResult.
    
    By removing the comma separating the string literals,
    you save all round:
    
    * smaller object code (one less function argument
     to push)
    * one less '\0' in the strings table
    * faster run time (one less time round the varargs
    handling code)
    * smaller source code!
    
    Attached is a file containing all the occurences i
    could grep out of the Tcl source (there are more in
    Tk too) plus a patch for the first file in the list.
    I'll submit patches for the rest if someone's
    willing to apply them... although the changes are
    absurdly trivial :-)
    
    
    
    
    
  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: "afredd"
  9. subsystem changed to: "None"
  10. title changed to: "Removing commas is slimming!"
  11. type changed to: "Patch"