sort an array

Fairlight fairlite at fairlite.com
Tue Jun 5 11:05:45 PDT 2018


No, I'm saying -don't- write to a file.  

Since arrays in filePro are statically sized, you'll need a second array
of equal or greater size defined, but you can sort directly into a second
array, and then use that array as your definitive one.

There's no need to invoke disk at all.

By 'resident memory', I mean you do it all into a second array present
only in RAM, same as your first array.  There's nothing esoteric about it;
simply define a second array and use it as the sort destination.

m->


On Tue, Jun 05, 2018 at 12:55:18PM -0500, Richard D. Williams via Filepro-list thus spoke:
> Mark,
> 
> Are you saying write the array out to a file and use Linux sort?
> 
> If yes, that's a good idea.
> 
> If not, how does one use "resident memory" in the context of this thread?
> 
> Richard
> 
> On 6/5/2018 12:41 PM, Fairlight via Filepro-list wrote:
> >On Tue, Jun 05, 2018 at 05:04:32PM +0000, Richard Kreiss thus spoke:
> >>Mark,
> >>
> >>You are correct, however if an SSD is used to create the file, the write,
> >>sort, read will be very quick.
> >And yet...still slower than using resident memory, no matter which type of
> >SSD you use.
> >
> >m->
> 
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
> 

-- 
Audio panton, cogito singularis.


More information about the Filepro-list mailing list