From: "Matthew Heaney" <matthewjheaney@earthlink.net>
Subject: Re: sorting large numbers of large records
Date: Mon, 28 Jul 2003 23:43:01 GMT
Date: 2003-07-28T23:43:01+00:00 [thread overview]
Message-ID: <9yiVa.1765$Bg.1522@newsread4.news.pas.earthlink.net> (raw)
In-Reply-To: bg3fgg$qig$1@grapevine.wam.umd.edu
"Brien L. Christesen" <blchrist@rac2.wam.umd.edu> wrote in message
news:bg3fgg$qig$1@grapevine.wam.umd.edu...
>
>
> I couldn't really find much discussion of doing external sorts in Ada (or
> much literature on external sorts at all) so I'm not sure if this is a
> good approach to be taking, or if there is a better way to do the sort. I
> tried creating an index, sorting the index, and then creating the results
> file based on the index. Jumping around the file with direct_io led to
> awful results, though. The execution time of the part of the code that
> read the index, got the corresponding value from the large record file,
> and wrote that record to a new file grew exponentially.
>
> Does anyone know of a good way to do this kind of sort? Thanks in advance
> for any responses.
I forgot to mention that I also wrote both indexed i/o and indexed
sequential i/o containers. These might be useful for minimizing how many
elements are kept in main memory. (The indexed i/o files are implemented
using a B-tree.)
http://www.adapower.com/reuse/indexed_io.html
-Matt
next prev parent reply other threads:[~2003-07-28 23:43 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-28 15:29 sorting large numbers of large records Brien L. Christesen
2003-07-28 15:35 ` Vinzent Hoefler
2003-07-31 15:22 ` Brien L. Christesen
2003-07-28 16:25 ` Hyman Rosen
2003-07-28 20:30 ` John R. Strohm
2003-07-28 20:52 ` Hyman Rosen
2003-07-28 23:47 ` Matthew Heaney
2003-07-28 23:33 ` Matthew Heaney
2003-07-28 23:43 ` Matthew Heaney [this message]
2003-07-29 0:42 ` John Cupak
2003-07-29 3:38 ` Matthew Heaney
2003-07-29 8:32 ` Preben Randhol
-- strict thread matches above, loose matches on Subject: below --
2003-07-29 13:10 Brien L. Christesen
2003-07-29 14:30 ` Larry Kilgallen
2003-07-30 0:32 ` Keith Thompson
2003-07-30 1:53 ` Hyman Rosen
2003-07-30 14:55 ` Matthew Heaney
2003-07-30 16:41 ` Chad R. Meiners
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox