home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / compress / pcompres.lha / PCompress / P-Compress.doc < prev    next >
Text File  |  1991-11-21  |  14KB  |  283 lines

  1. PRE1
  2.  
  3.                            P - C O M P R E S S V1.2 
  4.     INTRODUCTION 
  5.  
  6.      P-Compress is a compression/de-compression tool designed to meet the great
  7.   majority of the requirements of users efficiently and economically while
  8.   being very easy to use.  It will compress single files, drawers or complete
  9.   disks, preserving disk and drawer structures.  Individual files can be joined
  10.   into a single PACK, similar to an archive and by using PACKs two uncompressed
  11.   disks will normally fit on one.  Drawers and disks can be copied from one
  12.   place to another, selected files or classes of files being compressed and the
  13.   remainder just copied.  P-Compressed files, including sounds, pictures and 
  14.   animations, can be displayed by P-Reader without prior decompression, and P-
  15.   Compressed texts can be loaded into and saved from P-Writer.  The latest
  16.   version of P-Reader is being used to display this file.
  17.  
  18.     Two important areas not covered at present are:
  19.       Hard-disk back-up. Use a specialised programme (eg BRU).
  20.       Self-extracting executables.  Use Imploder from Fish 422.
  21.  
  22.     One of the main uses of P-Compress may be to reduce the size of your own
  23.   personal library collection of utilities, data, games, code examples, stored
  24.   away for occasional reference.  By just compressing all data, leaving icons
  25.   and executables untouched, and using P-Reader as the basic text reader and
  26.   display tool, my own "library" of 35 disks reduced to 25.  Caution is needed
  27.   when doing this as data files used by the executables must be left
  28.   uncompressed.  P-Compress is designed to make the selection process as easy
  29.   as possible.
  30.  
  31.      P-Compress employs the latest LZH compression technique using code by
  32.   Barthel and Krekel, modified to limit memory requirements. 
  33.  
  34.      This release also includes the small utility P-Unpack, whose sole purpose
  35.   in life is to unpack Packs.  Details are on Page 8.
  36.  
  37.  
  38.    COMPARISON WITH ALTERNATIVE PROGRAMMES 
  39.  
  40.     Whole disk compression tools:  eg LHWARP, Zoom.
  41.  
  42.      When used to PACK a complete disk P-Compress only compresses the files on
  43.   the disk and not such additional data as boot-blocks.  As a result output
  44.   will be smaller than that of true whole-disk tools. P-Unpack can write a
  45.   standard boot-block to the re-constituted disk.  Speed is comparable but
  46.   memory usage much lower.   If you really need to include everything on the
  47.   disk, Zoom is recommended.
  48.  
  49.     Archivers:  eg  LHArc, PKAZip.
  50.  
  51.     To suit their role in the maintenance of archives these include a host of
  52.   facilities which are of little or no use to most of us.  As a result they are
  53.   not easy to use. One effect of the complexity is that with some combinations
  54.   of commands and switches files can be lost. (Tip: always use the extended
  55.   filenames switch)  As far as performance goes P-Compress sacrifices about
  56.   0.5% in efficiency for the sake of decompression speed and low memory
  57.   requirement for large files.  It is faster and uses less memory than LHArcA
  58.   and much faster than LHArc.  PKAZip is very fast, efficiency sometimes better
  59.   sometimes worse, memory useage greatly excessive.  Large archived collections
  60.   of files cannot be handled by single-drive Amigas without expansion memory
  61.   (unless a vast number of disk-swops are acceptable),  PACKS can.
  62.  
  63.      General compression tools: eg Power Packer
  64.  
  65.     An excellent programme in its day the current PD version of PowerPacker is
  66.   completely outclassed by the new wave of LZH compression tools - although
  67.   decompression is fast.  As far as ease of use is concerned users should form
  68.   their own judgement.  PowerPacker has the ability to create self- extracting
  69.   executables which P-Compress does not do at present, however Imploder handles
  70.   this particular job better and more quickly.
  71.  
  72.    Some comparative performance figures are given at the end of these
  73.   instructions.
  74.         
  75.    INSTRUCTIONS 
  76.    
  77.    P-Compress opens a window on Workbench showing:
  78.  
  79.     On the left   Progress window.
  80.     Top right     Decompress window.
  81.     Centre right  Compress window.
  82.     Bottom right  Execute window.
  83.  
  84.    If you have the Arp library installed the programme will use the Arp File-
  85.   Requester, otherwise a simple string gadget requester will appear.  If you 
  86.   are using the latter to call a drawer the entry must end with a slash /.
  87.  
  88.   P-Compress can be started from the cli or by double-clicking its icon.
  89.  
  90.     DECOMPRESSION 
  91.  
  92.   Click From.    File requester will come up over the progress window. 
  93.   Enter or select the drawer, or
  94.   file to be de-compressed.  Click OK
  95.   (or cancel).  Selected reference
  96.   will be shown in the From box.
  97.  
  98.     Click To.   File requester will
  99.   re-appear.  Enter/select a disk, file
  100.   or drawer as required. If an existing
  101.   file other than a PACK is selected
  102.   but a drawer or disk was entered at From, a warning will appear.  Otherwise 
  103.   new files will be opened as necessary. A PACK can only be decompressed to a 
  104.   disk or drawer -  a file entered at To will be ignored and the programme 
  105.   will look at its path to decide where to place the unpacked output.
  106.   Compressed files will be decompressed to the indicated location, uncompressed
  107.   files will be just copied.  Name and size of the file being handled appears 
  108.   in the progress window.  On completion a summary will appear at the bottom of
  109.   the Decompress window (except where only a single file has been called).
  110.     #! 1 42 2 0 decompress.brush
  111.     The programme will recognise whether the input is a normal file or a PACK,
  112.   and will act accordingly.  PACK in the execute window should not be switched 
  113.   on.
  114.  
  115.     If you run out of disk space before decompression is complete you will be
  116.   asked to insert a new disk.  On completion delete any empty drawers on the
  117.   disks and transfer icons where necessary.
  118.   
  119.     Before decompressing compressed files a checksum (CRC) is read and checked
  120.   - if an error is found an appropriate warning will be given and the
  121.   offending file passed over.
  122.   #! 1 42 15 0 compress.brush
  123.     Before an existing file is overwritten you will be asked to OK it.
  124.   Clicking OVERWRITE in the execute window suspends this feature, which is
  125.   also  suspended when a PACKed file is being decompressed.  Click GO in the 
  126.   execute window to start decompression, CANCEL to cancel the process, and QUIT
  127.   to close down.
  128.  
  129.  
  130.     COMPRESSION 
  131.  
  132.    Select From and To in turn as
  133.   before and enter or select the source
  134.   and destination references.  Either a
  135.   disk, drawer or individual file may be
  136.   selected. If a disk or drawer is to be
  137.   compressed click on one or more of the
  138.   boxes below to indicate the types of
  139.   file to be compressed, the remainder
  140.   will just be copied.  Copied files are
  141.   not provided with Checksums.
  142.   
  143.      DATA  "Project" type data files such as texts, IFF pics, animations etc.
  144.      ICONS You may want to leave icons uncompressed.
  145.      EXEC  Libraries and all executables. 
  146.  
  147.     If you need to select specific individual files to be compressed or just
  148.   copied use ASK - the programme will halt at each file and ask for
  149.   instructions.
  150.  
  151.     Normally when compressing a file or drawer each file is transferred to an
  152.   equivalent place at the output location, new drawers being opened as needed,
  153.   so that the original structure of drawers and their contents is preserved.
  154.   Alternately a PACK can be created in which all the files are joined into one
  155.   compendium file or PACK.  An individual checksum is provided for each of the
  156.   files contained.  The name PACK will be appended to any filename that may be
  157.   inserted at To.  On decompression the original structure is re-created.  
  158.  
  159.    If you run out of disk space before compression is complete you will be
  160.   asked to insert a new disk (except where a PACK is being made - a file
  161.   cannot be split between two disks).
  162.  
  163.     Click OVERWRITEPACK as necessary, and then GO to start compression.
  164.   #! 1 42 7 0 exec.brush
  165.     Progress and final summary will be shown as before.
  166.  
  167.  
  168.     EXECUTION 
  169.  
  170.    Click OVERWRITE if existing files are to be overwritten.
  171.    CLICK PACK if you wish to put all the individual files into a single PACK.
  172.    Click GO to start compression or decompression, CANCEL to cancel the
  173.   process and QUIT to close down.
  174.   
  175.   
  176.  
  177.      COMPARISONS
  178.  
  179.      Three files have been used:
  180.        File 1 is a HAM picture.  Length 92872 bytes.  
  181.        File 2 is an executable file.  Length 28792 bytes. 
  182.        File 3 was made up by joining a general mixture of texts, executables
  183.          and icons into a single large file.  Length 608440 bytes.
  184.       
  185.                                Size            Compress        Decompress  
  186.   File 1
  187.     LHArcA                    51812            1min.08secs     33secs   
  188.     PowerPacker (fastest)     64412            2min.37secs     17secs
  189.     PowerPacker (best)        54196            23mins.45secs   16secs
  190.     PKAZip                    53407            45secs          21secs
  191.     P-Compress                52136            49secs          21secs
  192.  
  193.   File 2
  194.     LHArcA                    15788            26secs          11secs
  195.     PowerPacker (good)        17122            2min.11         9secs
  196.     PKAZip                    15919            24secs          7secs
  197.     P-Compress                15816            17secs          8secs
  198.  
  199.   File 3
  200.     LHArcA and PKAZip failed - out of memory.
  201.     PowerPacker not tried - out of patience.
  202.     P-Compress                287372           6m.28           1m.48
  203.  
  204.   In all cases compression/decompression was from disk to RAM: using an Amiga
  205.   500 with 1M of memory.  
  206.  
  207.  
  208.  
  209.                          P - U N P A C K V1.2           
  210.  
  211.     When sending out a disk containing a PACK you will normally include on the
  212.   disk the means of decoding it.  This can of course be P-Compress itself, but
  213.   the considerably smaller P-Unpack may be used instead.  The end result is
  214.   the same but P-Unpack provides two further advantages:
  215.  
  216.      It provides the efficient disk-swopping facilities needed by single-disk
  217.     -drive Amigas with memory that is not sufficient for the whole pack to be
  218.     copied to and decompressed from ram.
  219.  
  220.      By writing the icon with the ToolType "boot" the decompressed output disk 
  221.     is made bootable.  (Not functional for the single-floppy-drive user).
  222.  
  223.     P-Unpack is called as the Default Tool of a Project icon for a PACK file.  
  224.   When the icon is clicked the PACK will be decompressed and the original
  225.   structure of files and drawers copied to a disk. 
  226.  
  227.   Preparation - Sender
  228.  
  229.     The Pack should be created in the normal way with P-Compress.  Prepare
  230.   a PROJECT Icon for the Pack, and write P-Unpack as the Default Tool. Include
  231.   a path (e.g :c/P-Unpack) if necessary.  If the output disk is to be made
  232.   bootable write the single word boot into the Tool Types space.  Include
  233.   P-Unpack on the disk along with the Pack or Packs.  It is a good idea to
  234.   name the pack "CLICK-ME" or incorporate "click-me" into the icon so that the
  235.   recipient knows what to do. The recipient should not need any other 
  236.   instructions.
  237.      
  238.   Use - Recipient 
  239.  
  240.    The recipient will boot the received disk normally and faced with an icon
  241.   that incorporates the instruction Click-me will double-click it.  P-Unpack
  242.   will check the number of floppy drives connected.
  243.  
  244.     If there is more than one floppy drive connected a requester will appear
  245.   asking the user to select one, insert an empty disk, and click go.  Once
  246.   decompression is under way an Abort gadget is added.  Clicking on this will
  247.   stop the programme on completion of the current file.  If the pack includes
  248.   a disk icon, this will be adopted and seen if the disk is removed and
  249.   re-inserted.  If the Tool Type boot was written into the icon the output disk
  250.   will be bootable.  If the expanded PACK is larger than a single disk, a
  251.   notice will call for a new disk when the first is full.
  252.  
  253.     Where P-Unpack finds only one floppy drive a different requester will
  254.   appear asking the user to insert the source disk and click go.  Decompression
  255.   to RAM will continue for as long as memory is available and the user will
  256.   then be asked to insert the output disk - ram will be copied to this.  Disk
  257.   swopping will continue until decompression is complete - four or five swops
  258.   may be needed.  No early warning will be given of a full disk, but a new
  259.   disk can be inserted at any of the disk-swops. The output disk can not be
  260.   made bootable, otherwise the  final result is the same.
  261.  
  262.  
  263.            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  264.  
  265.     P-Compress and P-Unpack are Freeware.  They may be copied and distributed
  266.   freely and used without charge for non_commercial purposes.  Authority for
  267.   commercial use should be obtained from the author below.
  268.  
  269.     No responsibility can be accepted for any loss occasioned by use of these
  270.   programmes.
  271.  
  272.     Comments, suggestions, bug-reports all welcome.
  273.    Chas A. Wyndham,
  274.    1265 Canning Mills Road,
  275.    Roleystone,
  276.    WA 6111.
  277.    Australia 
  278.  
  279.  
  280.  
  281.  
  282.  
  283.