Accelerate LZMA compression
Posted: Fri Jul 05, 2024 12:38 pm
Hi,
I have a program which stores a lot of text. To save space (it's really a lot of text) I use LZMA compression to reduce the size significantly. Now, compression so much text takes a lot of time and 7-Zip is much faster when using the same option (at least, what I expect to be the same options...).
Without discussing that I could use BriefLZ or split the data or whatever for the sacrifice of some space and other levers I could pull: Can the compression be sped up? I know that the built-in libraries have some more functions that are not mapped into PureBasic directly and from time to time some question is answered by importing this or that function and such. My program is using only one core when compressing, 7-Zip uses all available, so is this maybe already doable?
I have a program which stores a lot of text. To save space (it's really a lot of text) I use LZMA compression to reduce the size significantly. Now, compression so much text takes a lot of time and 7-Zip is much faster when using the same option (at least, what I expect to be the same options...).
Without discussing that I could use BriefLZ or split the data or whatever for the sacrifice of some space and other levers I could pull: Can the compression be sped up? I know that the built-in libraries have some more functions that are not mapped into PureBasic directly and from time to time some question is answered by importing this or that function and such. My program is using only one core when compressing, 7-Zip uses all available, so is this maybe already doable?