home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / UTILITY / FILE / RFFSRT20.ZIP / RFFSORT.DOC < prev    next >
Encoding:
Text File  |  1991-09-09  |  4.8 KB  |  123 lines

  1. *******************************************************************************
  2. *                                   RFFSORT                                   *
  3. * Ron's Flexible Fast Sort program, RFFSORT V2.0, Sep 1991.                   *
  4. * Last Update : Sep. 09, 1991.                                                *
  5. *******************************************************************************
  6.  
  7. What's New
  8. ----------
  9.  
  10.   Version 2.0 uses a new combined internal and external sort algorithm 
  11.  in order to gain speed. Sorting a text file of 36K on a 33-MHZ 386 took
  12.  36 Sec. with V1.2, VS. 9 Sec. with V2.0. A fixed record size file sort, for
  13.  a file of 168K took 98 Sec. with V1.2, VS. 9 Sec. with V2.0 !. We can
  14.  assume that files that will fit in memory (up to 500K usually) will be
  15.  sorted in about 9-10 Sec., and only files that are larger then memory will
  16.  take more time. even this time is smaller then V1.2, because of the smaller
  17.  number of passes RFFSORT performs. Please notice - all of these tests were
  18.  done with the work directory set to the current hard disk drive, it is 
  19.  recomended to set the work directory to the ram disk, if available in order
  20.  to minimize sort time. I have ran the text file sort again on a 12-MHZ 286,
  21.  with the workind drive set to a ram drive, and received the following results :
  22.  V1.2 - 27 Sec. VS. 15 Sec. for V2.0. 
  23.  
  24.   Version 1.2 fixed a bug with several ram drives that gave an invalid 
  25.  media error, added count of number of records processed.
  26.  
  27.   With version 1.1 text files can be sorted using the -t switch, text files
  28.  are sorted with a maximum sort line size of the /Lxxxxx parameter.
  29.  
  30. Introduction
  31. ------------
  32.  
  33.   RFFSORT is a sort utility for files with fixed sized records, and text files,
  34.  RFFSORT can sort HUGE files, provided it has enough disk space to hold the 
  35.  temporary files. RFFSORT allows the user to sort the files using up to 10 sort
  36.  fields, that can be in acsending, and descending order.
  37.  
  38. Usage
  39. -----
  40.  
  41.   At the command line type RFFSORT and press Enter to receive a help screen,
  42.  this screen lists the programs command line format, and options.
  43.  
  44.          RFFSORT [e-options] input-file [e-options] [output-file] [e-options]
  45.    E-Options ..
  46.          @optfile - file of options
  47.          options  - options displayed below
  48.    Options ..
  49.          /Lxxxxx        - xxxxx characters per record
  50.          /Sf,sssss      - Start of f''th field at sssss
  51.          /Ef,eeeee      - End of f''th field at eeeee
  52.          /Of,d          - Order of f''th field is d, where d is A or D
  53.          /Dpath         - Path of working directory
  54.          /T             - File is a text file, with at most /Lxxxxx characters
  55.  
  56.    Notice - in option files, each option is at 1 line.
  57.           - f Values are 0 .. 9
  58.           - sssss, eeeee in 0..65535
  59.           - d is A = Acsending, D = descending
  60.  
  61.  (*) Points to notice :
  62.         
  63.         A. If you sort a file written with fixed length text strings,
  64.            terminated with the standard dos CR/LF remember to add 2
  65.            to the record length you specify to RFFSORT. 
  66.            (e.i. - the file looks like ..
  67.                 RECORD1...SOMEDATA...ENDOFRECORD1
  68.                 RECORD2...SOMEDATA...ENDOFRECORD2
  69.                 RECORD3...SOMEDATA...ENDOFRECORD3
  70.                 ...
  71.             The record length should be 33 + 2 = 35 )
  72.  
  73.         B. RFFSORT uses a combination of internal modified quick sort, and 
  74.            external merge sort algorithm that works on the storage 
  75.            device, remeber that if your file occupies X bytes on the
  76.            storage device, RFFSORT will need 2X free bytes on the work
  77.            directory to sort your file !
  78.  
  79. Warranty
  80. --------
  81.  
  82.   There is no warranty what so ever, The program is supplied as is,
  83.  The author (Loewy Ron), is not, and will not be responsible for any damages,
  84.  lost profits, or inconveniences caused by the use, or inability to
  85.  use this program. The use of the program is at your own risk. 
  86.  By using the program you agree to this.
  87.  
  88. General
  89. -------
  90.  
  91.   RFFSORT is copyrighted by myself, (c) Loewy Ron, 1991. 
  92.  
  93.   RFFSORT is free for personal non-commercial use, for commercial or corporate
  94.  use, please register your copy. (ORDER.TXT file is supplied).
  95.  
  96. Contact
  97. -------
  98.  
  99.   You can contact me on what-ever you want to at my address at :
  100.  
  101.         Loewy Ron,
  102.         9 Haneveem st.
  103.         Herzeliya, 46465
  104.         ISRAEL.
  105.  
  106.    OR 
  107.  
  108.         Loewy Ron, 
  109.         Apt. 1,
  110.         20 Smolanskin st.
  111.         Haifa, ISRAEL.
  112.  
  113.   Other programming units available from me are listen in the supplied
  114.  RLPROG.TXT text file.
  115.  
  116. Credits
  117. -------
  118.  
  119.   RFFSORT was written using Turbo-Pascal V6.0, 
  120.    a copyright of Borland International.
  121.  
  122.   Windows 3.0 is a copyright of Microsoft Corp. Inc.
  123.