FileForums

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

78372 26-11-2019 07:48

Cls mpzmt
 
1 Attachment(s)
MPZAPI is a mp3 compressor with high ratio.

Generally it supports stdio and it's slow.

Anyways, here's a cls for multithreaded mpz with stdio support.

Default ChunkSize is 64MB but it doesn't need any file io.

Test using two threads.
Quote:

FreeArc 0.67 (March 15 2014) Creating archive: .\testmt.arc using mpzmt
Memory for compression 0b, decompression 0b, cache 16mb
Compressed 43 files, 314,949,906 => 273,197,883 bytes. Ratio 86.74%
Compression time: cpu 3.27 sec/real 321.00 sec = 1%. Speed 0.98 mB/s
All OK
FreeArc 0.67 (March 15 2014) testing archive: testmt.arc
Tested 43 files, 273,197,883 => 314,949,906 bytes. Ratio 86.74%
Testing time: cpu 2.81 sec/real 315.85 sec = 1%. Speed 1.00 mB/s
All OK
Normally it uses Threads - 1 numbers of cpu.

Input: 300MB mp3 files.
Output: 266733 KB
OutputMT: 266797 KB

See? Almost no difference here.

*Note: This cls may cause a bug to hang the installer after extraction. I didn't face it but it may have.

KaktoR 26-11-2019 08:12

Will test and maybe add it to CIU if you like ;)

Carldric Clement 26-11-2019 12:05

Nice one this. Gonna test it on Mini Compressor. :)

KaktoR 26-11-2019 13:12

Code:

Compressed 85 files, 1,134,801,037 => 887,316,349 bytes. Ratio 78.19%
Compression time: cpu 1.70 sec/real 535.51 sec = 0%. Speed 2.12 mB/s
All OK

Extracted 85 files, 887,316,349 => 1,134,801,037 bytes. Ratio 78.19%
Extraction time: cpu 1.89 sec/real 487.87 sec = 0%. Speed 2.33 mB/s
All OK

It also works with srep before mpz (much better ratio at ~50%) but holy shit this is just too slow on unpacking with srep. Unfortunatelly I didn't saved the report but I think it was something at around 500kb/s :D

78372 26-11-2019 19:34

Probably after srep the chunksize was less than required for using all threads. Keep checking on task manager/ Process hacker to see how many mpzapi.exe were launched at a time.

KaktoR 14-12-2019 09:56

Are there any CLS.ini settings?

78372 15-12-2019 22:49

Quote:

Originally Posted by KaktoR (Post 483842)
Are there any CLS.ini settings?

No afair


All times are GMT -7. The time now is 01:42.

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