Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 71c184176cf29dc843b661fee95c7c87ca805473
Ticket: cafef7c5856ec8b1cbc0ea13c6c41d96d9982d75
Unexplained code in StringRplcCmd function (tclCmdMZ.c)
User & Date: aku on 2015-02-18 17:36:45
Changes

  1. icomment:
    Don, see
    
        http://core.tcl.tk/tcl/artifact/d6cf5f9c8c788ff2?ln=2350-2364
    
    top and bottom of the marked block.
    
    It looks like the second (in-block) is indeed superfluous. While 'ustring' is only used within the guarded block the 'length' information is needed before so it is the first use which is important.
    
    Removal should not introduce any bugs as far as I can see.
    
    The change could be classed as optimization.
    
    Actual perf impact is likely low.
    
  2. login: "aku"
  3. mimetype: "text/x-fossil-wiki"