Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: be9ecdd92a409b89836bb937e454042f6c0d317e
Ticket: 585105ffffffffffffffffffffffffffffffffff
CONST-ified parser
User & Date: dgp on 2002-07-24 10:51:03
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    Here is an updated patch that completes
    CONST-ification of Tcl.  It has a substantial
    parser re-write that operates on counted
    strings, and doesn't have the thread-safety
    issues of the last attempt.  Also merged in
    are the features of Patch 582429 which
    CONST-ifies the Tcl_*Var* interfaces, and
    the patch attached to Bug 580433 that
    enhances the USE_NON_CONST macro
    to allows users of the C API to completely
    avoid all source incompatibilities with 8.3
    headers if they need to.
    
    It's been said that CONST-ification needs
    to be an "all or nothing" affair.  This patch
    lets us explore the "all" option.
    
    It's also been said that CONST-ification
    of the parser would kill performance.  I don't
    see a significant problem with it.  Simple
    testing with tclbench indicates the patched
    Tcl is overall faster than even the HEAD, 
    and a still a significant improvement over
    8.4b1 (thanks, MIguel!).  There are some
    things that are slower, notably evaluation
    of unbraced [expr]'s, but haven't we advised
    against those for awhile now?
    
    Anyhow the main point was to get
    something working so that we can decide
    whether or not to adopt it based on
    measurements rather than speculation,
    so please measure away!  Try it.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"