Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2913cb09cef8b0e16cbdbd7cf6fbad64780717ce
Ticket: 1366484fffffffffffffffffffffffffffffffff
patch: speed up lsort (follow on to 1360413)
User & Date: afredd on 2005-11-25 18:12:16
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Sorry about the repeated submission. (Doesn't seem 
    like 'nobody' can upload a second file.)
    
    Here's the percentage speed increase of the current 
    patch done on a 8.5a3 on a 100 item list (on one 
    particular run):
    
    -ascii => 37 %
    -ascii -unique => 36 %
    -integer => 48 %
    -integer -unique => 44 %
    -real => 15 %
    -real -unique  => 17 %
    -index 1  => 50 %
    -index 1 -unique => 48 %
    -command compare_cmd => 0 %
    -command compare_cmd -unique => 0 %
    
    The saving is better with larger lists. Don't expect 
    any saving when using -command, as the called tcl 
    command takes the bulk of processing time. See the 
    code for why -real and -unique are not quite as quick 
    (but still quicker). The "-index $n -integer" is the 
    best improver running in less than a third of the 
    previous time for lists of more than a 100.
    
    The patch is against the current HEAD (184). (I've not 
    tested it - just ported across my 8.5a3 tested version 
    into the HEAD copy. fingers crossed)
    
    
    
    
  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: "patch: speed up lsort (follow on to 1360413)"
  11. type changed to: "Patch"