Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7204a2885c2cba7443c4dcb86484ed6c152e27b9
Ticket: 903765ffffffffffffffffffffffffffffffffff
avoid quadratic parsing time
User & Date: dgp on 2004-03-09 00:46:25
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    
    The conceptually obvious fix would
    be for the expr parser to stop trying to
    fill a linear Tcl_Token array on the
    fly, and instead have the parser build
    an actual parse tree.  Then when the
    parse tree is complete, a simple
    traversal can create the Tcl_Token
    array in linear time.
    
    It's a simple transformation in concept,
    but a fairly substantial rewrite of
    generic/tclParseExpr.c.  A nice limited
    project for someone who wants to
    get started hacking the core.  Who
    needs a project?
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"