home *** CD-ROM | disk | FTP | other *** search
- *******************************************************************************
- * RFFSORT *
- * Ron's Flexible Fast Sort program, RFFSORT V2.0, Sep 1991. *
- * Last Update : Sep. 09, 1991. *
- *******************************************************************************
-
- What's New
- ----------
-
- Version 2.0 uses a new combined internal and external sort algorithm
- in order to gain speed. Sorting a text file of 36K on a 33-MHZ 386 took
- 36 Sec. with V1.2, VS. 9 Sec. with V2.0. A fixed record size file sort, for
- a file of 168K took 98 Sec. with V1.2, VS. 9 Sec. with V2.0 !. We can
- assume that files that will fit in memory (up to 500K usually) will be
- sorted in about 9-10 Sec., and only files that are larger then memory will
- take more time. even this time is smaller then V1.2, because of the smaller
- number of passes RFFSORT performs. Please notice - all of these tests were
- done with the work directory set to the current hard disk drive, it is
- recomended to set the work directory to the ram disk, if available in order
- to minimize sort time. I have ran the text file sort again on a 12-MHZ 286,
- with the workind drive set to a ram drive, and received the following results :
- V1.2 - 27 Sec. VS. 15 Sec. for V2.0.
-
- Version 1.2 fixed a bug with several ram drives that gave an invalid
- media error, added count of number of records processed.
-
- With version 1.1 text files can be sorted using the -t switch, text files
- are sorted with a maximum sort line size of the /Lxxxxx parameter.
-
- Introduction
- ------------
-
- RFFSORT is a sort utility for files with fixed sized records, and text files,
- RFFSORT can sort HUGE files, provided it has enough disk space to hold the
- temporary files. RFFSORT allows the user to sort the files using up to 10 sort
- fields, that can be in acsending, and descending order.
-
- Usage
- -----
-
- At the command line type RFFSORT and press Enter to receive a help screen,
- this screen lists the programs command line format, and options.
-
- RFFSORT [e-options] input-file [e-options] [output-file] [e-options]
- E-Options ..
- @optfile - file of options
- options - options displayed below
- Options ..
- /Lxxxxx - xxxxx characters per record
- /Sf,sssss - Start of f''th field at sssss
- /Ef,eeeee - End of f''th field at eeeee
- /Of,d - Order of f''th field is d, where d is A or D
- /Dpath - Path of working directory
- /T - File is a text file, with at most /Lxxxxx characters
-
- Notice - in option files, each option is at 1 line.
- - f Values are 0 .. 9
- - sssss, eeeee in 0..65535
- - d is A = Acsending, D = descending
-
- (*) Points to notice :
-
- A. If you sort a file written with fixed length text strings,
- terminated with the standard dos CR/LF remember to add 2
- to the record length you specify to RFFSORT.
- (e.i. - the file looks like ..
- RECORD1...SOMEDATA...ENDOFRECORD1
- RECORD2...SOMEDATA...ENDOFRECORD2
- RECORD3...SOMEDATA...ENDOFRECORD3
- ...
- The record length should be 33 + 2 = 35 )
-
- B. RFFSORT uses a combination of internal modified quick sort, and
- external merge sort algorithm that works on the storage
- device, remeber that if your file occupies X bytes on the
- storage device, RFFSORT will need 2X free bytes on the work
- directory to sort your file !
-
- Warranty
- --------
-
- There is no warranty what so ever, The program is supplied as is,
- The author (Loewy Ron), is not, and will not be responsible for any damages,
- lost profits, or inconveniences caused by the use, or inability to
- use this program. The use of the program is at your own risk.
- By using the program you agree to this.
-
- General
- -------
-
- RFFSORT is copyrighted by myself, (c) Loewy Ron, 1991.
-
- RFFSORT is free for personal non-commercial use, for commercial or corporate
- use, please register your copy. (ORDER.TXT file is supplied).
-
- Contact
- -------
-
- You can contact me on what-ever you want to at my address at :
-
- Loewy Ron,
- 9 Haneveem st.
- Herzeliya, 46465
- ISRAEL.
-
- OR
-
- Loewy Ron,
- Apt. 1,
- 20 Smolanskin st.
- Haifa, ISRAEL.
-
- Other programming units available from me are listen in the supplied
- RLPROG.TXT text file.
-
- Credits
- -------
-
- RFFSORT was written using Turbo-Pascal V6.0,
- a copyright of Borland International.
-
- Windows 3.0 is a copyright of Microsoft Corp. Inc.
-