78372
26-11-2019, 07:48
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.
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.
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.
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.