Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8c083d9e7c1a3ae3c268591470679e19da3621f0
Ticket: 1052584fffffffffffffffffffffffffffffffff
TIP#225: O(1) space [range] command.
User & Date: msofer on 2004-10-24 20:50:11
Changes

  1. icomment:
    
    
    File Added - 106266: msrange.patch
    
    Logged In: YES 
    user_id=148712
    
    Alternative implementation attached (msrange.patch), for
    discussion. It is based heavily on antirez's patch.
    
    The main differences are:
      - the new arithSeriesType are not meant to be exposed to
    the user; they are used internally as optimisations by some
    list commands (foreach, llength, lindex; lrange could be
    added), with automatic conversion to list type for the
    others. There are no special commands for handling the new
    types. 
      - the new obj types do not store Tcl_Objs, but ints or
    wideInts according to necessity. These are stored in a union
    (alternatively one could consider having two different types
    for ints and wides).
      - no new commands are meant to be exposed; this patch does
    not touch the stubs tables
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"