Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c7eaddc22e914b3debc705545f4fd2563f1f9e58
Ticket: 1366484fffffffffffffffffffffffffffffffff
patch: speed up lsort (follow on to 1360413)
User & Date: afredd on 2005-12-10 00:32:44
Changes

  1. icomment:
    Logged In: YES 
    user_id=1386588
    
    dkf> Can I delete the older patch from this ticket?
    
    Sure. Thanks!
    
    #1 Small point... the comment in there about running with 
    SORTELEMENT_HAS_OBJPTR==0 on my old 350Mhz laptop should 
    say "faster with lists of more than 1000 elements" (the tip 
    over seems to be ~700). However, on my quick machine 
    SORTELEMENT_HAS_OBJPTR==1 is very definately the better 
    option.
    
    
    #2 btw - i've been comparing the MergeSort alg. against the 
    equivalent in Perl and Python. Tcl's does a significant 
    number more *comparisons* - especially so for almost sorted 
    data (a common case). In fact there's is O(N) for sorted 
    data. I'm having a go at hacking Perl's sort alg. into 
    tclCmdIL.c to get some benchmark figures. I undertand the 
    resultant patch may not be acceptable, but it might be a 
    trigger for further work. I'll post more later.
    Cheers.
    
    
  2. login: "afredd"
  3. mimetype: "text/plain"
  4. username: "afredd"