FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   Cls-lzham (https://fileforums.com/showthread.php?t=99973)

Gupta 06-01-2018 05:12

Cls-lzham
 
2 Attachment(s)
No chunking, No Temps, No external executable

Quote:

Originally Posted by Richard Geldreich, Jr
LZHAM is a lossless data compression codec written in C/C++ (specifically C++03), with a compression ratio similar to LZMA but with 1.5x-8x faster decompression speed. It officially supports Linux x86/x64, Windows x86/x64, OSX, and iOS, with Android support on the way.

Current Version: 1092018

doofoo24 06-01-2018 05:45

test it on small file size decompress work will with inno with the setting that you gave lzham:b4:w24:s4:l10 decompression speed around 87 mb/s on ssd but in compression it slower than lzma...
is there other setting to make better ratio or this is the max setting for lzham,
the cls work great so far no error...

Gupta 06-01-2018 05:55

L10 is not that useful try l9, and increase window size until u get error

Increase buffer size to 16 may be, lzham really like big inputs at once

DiCaPrIo 06-01-2018 06:03

1 Attachment(s)
got error with 64ws

Gupta 06-01-2018 06:08

Increase it slowly slowly, there is no limit but is limited by the hardware, or maybe something i am unware of,,,,,,, lzham initialization fails for too big win size

So increments it by 1 and see how far u can get, decompression remains unaffected from Window size

Razor12911 06-01-2018 06:16

Limited by memory probably, cls is x86 therefore 2GB memory limit

Gupta 06-01-2018 06:17

Cpp compilers provides tricks to use int64_t

Or maybe u r right haven't checked lzham sources may be changing int type for x86 build will run tests tomorrow

DiCaPrIo 06-01-2018 06:18

got error on 27ws
worked 1 to 26 ws

Razor12911 06-01-2018 06:19

Quote:

Originally Posted by PrinceGupta2000 (Post 465607)
Cpp compilers provides tricks to use int64_t

Ir maybe u r right will run tests tomorrow

I think that's a 64-bit integer, nothing to do with architecture. That's just an integer that's constructed using 64 bits in terms of binary.

doofoo24 06-01-2018 06:22

@Razor12911 please can you update the cls-zstd to the newer ver 1.3.3 (there new setting like ultra and Long Range Mode)

Gupta 06-01-2018 06:24

If u can't represent more than 4 gb in int how will u address memory space more then that

Razor12911 06-01-2018 06:26

Quote:

Originally Posted by PrinceGupta2000 (Post 465611)
If u can't represent more than 4 gb in int how will u address memory space more then that

You can represent 4GB> in int. Remember, 64-bit converts to 8 bytes. Int64 takes up just 8 bytes in memory, so really you can store that much data in the integer, but when it comes to addressing memory, this is not possible. At least from my understanding.

Edit:
At least in pascal, we are told that memory addresses can be recalled by pointers. These pointers in 32-bit environment are an equivalence to a 32-bit integer because they are 4 bytes while in 64-bit, they are 8 bytes.
Quote:

Originally Posted by doofoo24 (Post 465610)
@Razor12911 please can you update the cls-zstd to the newer ver 1.3.3 (there new setting like ultra and Long Range Mode)

I'll assign 78372 to do it :)

doofoo24 06-01-2018 06:33

shouldn't lzham:b512mb:w24:s4:l9 use more memory like 5gb???
it using 1gb and the ratio is worst than lzham:b4:w24:s4:l10...

Gupta 06-01-2018 06:37

@razor12911
For memory addressing processor or os prefers native integer types, 32 bit os performs bit level arithmetic to adress memory address more tha limit, and compilers stay away from this arithmetic overhead in x86 build unles told to do soo

Gupta 06-01-2018 06:40

Don't go too much high, lzham may flush data on high ram uses and can't use the redundancy and patterns from previously processed chunks


All times are GMT -7. The time now is 12:55.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com