Skip to content
Tcl Source Code Artifact [c7eaddc22e]
Login

Artifact [c7eaddc22e]

Artifact c7eaddc22e914b3debc705545f4fd2563f1f9e58:

Ticket change [c7eaddc22e] - Ticket [1366484fffffffff|1366484fff] <i>patch: speed up lsort (follow on to 1360413)</i> status still Open with 4 other changes by afredd on 2005-12-10 00:32:44.
D 2005-12-10T00:32:44
J icomment Logged\sIn:\sYES\s\nuser_id=1386588\n\ndkf>\sCan\sI\sdelete\sthe\solder\spatch\sfrom\sthis\sticket?\n\nSure.\sThanks!\n\n#1\sSmall\spoint...\sthe\scomment\sin\sthere\sabout\srunning\swith\s\nSORTELEMENT_HAS_OBJPTR==0\son\smy\sold\s350Mhz\slaptop\sshould\s\nsay\s"faster\swith\slists\sof\smore\sthan\s1000\selements"\s(the\stip\s\nover\sseems\sto\sbe\s~700).\sHowever,\son\smy\squick\smachine\s\nSORTELEMENT_HAS_OBJPTR==1\sis\svery\sdefinately\sthe\sbetter\s\noption.\n\n\n#2\sbtw\s-\si've\sbeen\scomparing\sthe\sMergeSort\salg.\sagainst\sthe\s\nequivalent\sin\sPerl\sand\sPython.\sTcl's\sdoes\sa\ssignificant\s\nnumber\smore\s*comparisons*\s-\sespecially\sso\sfor\salmost\ssorted\s\ndata\s(a\scommon\scase).\sIn\sfact\sthere's\sis\sO(N)\sfor\ssorted\s\ndata.\sI'm\shaving\sa\sgo\sat\shacking\sPerl's\ssort\salg.\sinto\s\ntclCmdIL.c\sto\sget\ssome\sbenchmark\sfigures.\sI\sundertand\sthe\s\nresultant\spatch\smay\snot\sbe\sacceptable,\sbut\sit\smight\sbe\sa\s\ntrigger\sfor\sfurther\swork.\sI'll\spost\smore\slater.\nCheers.\n
J login afredd
J mimetype text/plain
J username afredd
K 1366484fffffffffffffffffffffffffffffffff
U afredd
Z 6f438f760be9bc8e6701a31330d69e89