Recent

Author Topic: Why do Lazarus users share code via zip files rather than repo links?  (Read 5200 times)

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2044
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Why do Lazarus users share code via zip files rather than repo links?
« Reply #60 on: February 28, 2024, 02:54:16 am »
There are several other settings that can affect the compression level, but this is the most important.
I would say the most important is first of all the used format (image 1) followed by possible method (image 2) and then the rest of options.
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

paule32

  • Full Member
  • ***
  • Posts: 174
Re: Why do Lazarus users share code via zip files rather than repo links?
« Reply #61 on: February 28, 2024, 08:56:02 am »
I agree, and use 7z (seven Zip).
It supports -9 Option, to "maximal" shrink Data Information's.
It supports multiple Formats - .tar, .gz, .zip, .lha, ...

The Command, I use is: # zip -9 -r packedfile.zip *.pas
pack all *.pas files in the current, and sub Directories based on starting the Command.

-9 = max Pack-Level (slow)
-r = recursive

for Pack-Level, you can use Digits between 1, and 9
1 - lowest Level (fast)
9 - highest Level (slow)

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4466
  • I like bugs.
Re: Why do Lazarus users share code via zip files rather than repo links?
« Reply #62 on: February 28, 2024, 09:28:23 am »
What archiving options did you use? In 7zip, if I remember correctly, "-mx9" is the maximum compression level. There are several other settings that can affect the compression level, but this is the most important.
I used the defaults offered by Dolphin file manager Pack menu. Both .7z and .tar.xz had level 6 or 7 out of 10.
Now I tried with the max level.
Code: [Select]
richmemo.zip          638,5 kB
richmemo.tar.gz       616,2 kB
richmemo.7z           562,0 kB
richmemo.tar.xz       561,6 kB

richmemo.tar.xz (max) 561,7 kB
richmemo.7z (max)     558,7 kB
.tar.xz got slightly bigger.
.7z has many packing methods. The default is LZMA2. There is also BZip2 and many others.
It is unfortunate that these good compression formats cannot be used. :)
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

 

TinyPortal © 2005-2018