.
D 2005-11-18T18:41:04
J assignee dkf
J cmimetype text/plain
J comment Attached\sis\sa\spatch\sfor\stclCmdIL.c#184\s(HEAD)\sthat\s\nshows\sa\spotential\sspeed\sup\sfor\slsort.\n\nMy\stests\sshow\supto\s50%\sspeed\simprovement\son\slarge\s\nlists\swhen\susing\s-index,\sotherwise\s>20%.\n\nIt\sworks\sby:\n1.\scaching\swhat's\sto\sbe\scompared\sin\sthe\ssortElement.\s\n2.\susing\sseparate\ssorting\sfunctions\sfor\s\nstring/integer/real\sand\scommand.\n\nSo\sthe\scost\sof\sthe\ssolution\sis\sa\sbigger\s(4\sbytes\son\smy\s\nmachine,\sif\syou\sdo\snot\scache\sthe\sdouble's)\sSortElement\s\nto\shold\sthe\scached\svalue.\sThis\spotentially\smeans\sthat\s\na\slist\spreviously\ssortable\swould\snot\snow\sbe\ssince\sthe\s\nckalloc\smight\snow\sfail...\sthis\sis\sa\sperfectably\sgood\s\nreason\sfor\srejecting\sthis\spatch.\sAnyhow...\n\nAlso\sin\sthe\spatch\sis\sa\stestcase.\sHere\sare\smy\sresults:\n\n1.\slsort\stest\ssuite:\n\n%\ssource\scmdil.test\n====\scmdIL-3.4\sSortCompare\sprocedure,\s-index\soption\s\nFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\slist\s[catch\s{lsort\s-integer\s-index\s2\s"{a\sb\sc}\s\n\\\\\\{"}\smsg]\s$msg\n\n----\sResult\swas:\n1\s{expected\sinteger\sbut\sgot\s"c"}\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\n1\s{unmatched\sopen\sbrace\sin\slist}\n====\scmdIL-3.4\sFAILED\n\ncmdil.test:\s\s\s\s\sTotal\s\s\s112\s\s\s\s\sPassed\s\s107\s\s\s\s\s\nSkipped\s4\s\s\s\s\s\s\sFailed\s\s1\nNumber\sof\stests\sskipped\sfor\seach\sconstraint:\n\s\s\s\s\s\s\s\s2\s\s\s\s\s\s\shasIsoLocale\n\s\s\s\s\s\s\s\s2\s\s\s\s\s\s\smemory\n\n\n...\sJust\sone\sfailure\swhere\sit\snow\sfinds\san\serror\s\nearlier\sthan\spreviously!\n\n2.\sHere's\sthe\stestcase\soutput:\n1\s\s\s\s\s\s\sCLEAN:\s110331.4\s\sPATCH:\s39657.0\s\s=>\s64\s%\n2\s\s\s\s\s\s\sCLEAN:\s131670.2\s\sPATCH:\s92018.2\s\s=>\s30\s%\n3\s\s\s\s\s\s\sCLEAN:\s149079.8\s\sPATCH:\s73460.8\s\s=>\s50\s%\n4\s\s\s\s\s\s\sCLEAN:\s119905.0\s\sPATCH:\s80620.8\s\s=>\s32\s%\n5\s\s\s\s\s\s\sCLEAN:\s93791.4\s\s\sPATCH:\s73729.8\s\s=>\s21\s%\n6\s\s\s\s\s\s\sCLEAN:\s117635.0\s\sPATCH:\s100158.2\s\s\s\s\s\s\s\s\s=>\s14\s\n%\n7\s\s\s\s\s\s\sCLEAN:\s114906.2\s\sPATCH:\s50793.0\s\s=>\s55\s%\n8\s\s\s\s\s\s\sCLEAN:\s128672.6\s\sPATCH:\s83854.8\s\s=>\s34\s%\n9\s\s\s\s\s\s\sCLEAN:\s157616.6\s\sPATCH:\s105437.4\s\s\s\s\s\s\s\s\s=>\s33\s\n%\n10\s\s\s\s\s\sCLEAN:\s134954.4\s\sPATCH:\s78123.2\s\s=>\s42\s%\n11\s\s\s\s\s\sCLEAN:\s94857.4\s\s\sPATCH:\s64058.2\s\s=>\s32\s%\n12\s\s\s\s\s\sCLEAN:\s123963.4\s\sPATCH:\s97011.8\s\s=>\s21\s%\n13\s\s\s\s\s\sCLEAN:\s17.454\s\s\s\sPATCH:\s16.63\s\s\s\s=>\s4\s%\n14\s\s\s\s\s\sCLEAN:\s5.979\s\s\s\s\sPATCH:\s5.482\s\s\s\s=>\s8\s%\n15\s\s\s\s\s\sCLEAN:\s6.195\s\s\s\s\sPATCH:\s5.377\s\s\s\s=>\s13\s%\n16\s\s\s\s\s\sCLEAN:\s6.273\s\s\s\s\sPATCH:\s4.853\s\s\s\s=>\s22\s%\n17\s\s\s\s\s\sCLEAN:\s6.805\s\s\s\s\sPATCH:\s7.494\s\s\s\s=>\s-10\s%\n18\s\s\s\s\s\sCLEAN:\s6.186\s\s\s\s\sPATCH:\s5.685\s\s\s\s=>\s8\s%\n19\s\s\s\s\s\sCLEAN:\s6.85\s\s\s\s\s\sPATCH:\s6.25\s\s\s\s\s=>\s8\s%\n20\s\s\s\s\s\sCLEAN:\s1858129\s\s\sPATCH:\s1027576\s\s=>\s44\s%\n21\s\s\s\s\s\sCLEAN:\s2134265\s\s\sPATCH:\s2159487\s\s=>\s-1\s%\n22\s\s\s\s\s\sCLEAN:\s2187077\s\s\sPATCH:\s1533322\s\s=>\s29\s%\n23\s\s\s\s\s\sCLEAN:\s741726\s\s\s\sPATCH:\s735839\s\s\s=>\s0\s%\n24\s\s\s\s\s\sCLEAN:\s5.2992\s\s\s\sPATCH:\s4.8409\s\s\s=>\s8\s%\n25\s\s\s\s\s\sCLEAN:\s4.6576\s\s\s\sPATCH:\s4.1616\s\s\s=>\s10\s%\n26\s\s\s\s\s\sCLEAN:\s4.4018\s\s\s\sPATCH:\s4.4732\s\s\s=>\s-1\s%\n27\s\s\s\s\s\sCLEAN:\s5.4154\s\s\s\sPATCH:\s4.8429\s\s\s=>\s10\s%\n28\s\s\s\s\s\sCLEAN:\s3.119576\s\sPATCH:\s3.103229\s\s\s\s\s\s\s\s\s=>\s0\s%\n29\s\s\s\s\s\sCLEAN:\s1646470\s\s\sPATCH:\s1046932\s\s=>\s36\s%\n30\s\s\s\s\s\sCLEAN:\s1456428\s\s\sPATCH:\s1000617\s\s=>\s31\s%\n31\s\s\s\s\s\sCLEAN:\s4982307\s\s\sPATCH:\s4436950\s\s=>\s10\s%\n\n\n
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 17.\sCommands\sI-L
J title patch:\sspeed\sup\slsort
J type Patch
K 1360413fffffffffffffffffffffffffffffffff
U nobody
Z f4c7e2cab2aee57cb6fcb309941f555c