Skip to content
Tcl Source Code Artifact [c181bea826]
Login

Artifact [c181bea826]

Artifact c181bea8264d9ad5b28fcb994555f7f9ebb75cd6:

Ticket change [c181bea826] - New ticket [735388ffffffffff|735388ffff] <i>freeing lists takes nonlinear time</i>. by msofer on 2003-05-09 18:48:00.
D 2003-05-09T18:48:00
J assignee msofer
J cmimetype text/plain
J comment Freeing\slarge\sarrays\s(or\slarge\snumbers\sof\sarrays?)\ntakes\snon-linear\stime\son\slinux:\n\n%\sinfo\spatch\n8.5a0\n%\sfor\s{\sset\sx\s1\s}\s{\s$x\s<\s\s5}\s{incr\sx\s}\s{\n\s\s\s\s\sset\sdata\s[list]\n\s\s\s\s\sset\snewcount\s[expr\s$x\s*\s100000]\n\s\s\s\s\sfor\s\s{set\si\s0}\s\s{$i\s<\s\s$newcount\s}\s{incr\si}\s{\n\s\s\s\s\s\s\s\s\s\s\s\slappend\sdata\s[\slist\s$i.0\s$i.1\s$i.2\s]\n\s\s\s\s\s\s}\n\s\s\s\s\s\sputs\s-nonewline\s"listsize\s=\s\s[llength\s$data]\s\s"\n\s\s\s\s\s\sset\sunsetime\s\s[\slindex\s[time\s{\sunset\sdata\s}]\s0\s]\n\s\s\s\s\s\sset\sunitTime\s[expr\s{$unsetime\s/\s$newcount}]\n\s\s\s\s\s\sputs\s"\s$unitTime\sus/item"\n}\nlistsize\s=\s\s100000\s\s\s5\sus/item\nlistsize\s=\s\s200000\s\s\s20\sus/item\nlistsize\s=\s\s300000\s\s\s41\sus/item\nlistsize\s=\s\s400000\s\s\s60\sus/item\n\nNotes:\n\n1.\sThis\sdoes\s*not*\shappen\swith\sthe\sthreaded\sallocator\n\n2.\sThe\sproblem\sdoes\snot\sseem\sto\sappear\sin\seither\sW2000\nor\sSolaris\n\n3.\sIt\smay\sbe\sdepend\son\sthe\sglibc/gcc\sversion\sused:\sthe\nabove\sis\swith\sgcc-2.96\sand\sglibc-2.2.4\s(RH\s7.1\sbuilds).\nRolf\sAde\sreported\slinear\stime\swith\sgcc-3.2\sand\sglibc-2.3.2\n\nSee\salso\sclt\sthreads\sat\nhttp://groups.google.com/groups?threadm=3EBBC0DC.7050805%40houston.rr.com\nhttp://groups.google.com.ar/groups?threadm=vbngfpddpjr1a7%40corp.supernews.com\n
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter msofer
J subsystem 41.\sMemory\sAllocation
J title freeing\slists\stakes\snonlinear\stime
J type Bug
K 735388ffffffffffffffffffffffffffffffffff
U msofer
Z 2126f0dee570ff49758d58866d73b690