Given enough time, session logs from KoLmafia can take up quite a lot of storage space. Thankfully, the nature of these logs means that they are extremely compressible using tools like Gzip.
Many scripts benefit from accessing these logs through the session_logs ASH function, though, and this would break that functionality. I’d like to change that function so that it automatically decompresses and reads Gzipped logs along with uncompressed logs, as if they were normal text. Java has a built-in class for that, so it should be fairly easy to implement.
Compressing the files in the first place could be left to the user. Gzip isn’t computationally intensive (it is already used for web requests in KoLmafia, after all), but adding a setting for it would probably confuse a lot of people.
Many scripts benefit from accessing these logs through the session_logs ASH function, though, and this would break that functionality. I’d like to change that function so that it automatically decompresses and reads Gzipped logs along with uncompressed logs, as if they were normal text. Java has a built-in class for that, so it should be fairly easy to implement.
Compressing the files in the first place could be left to the user. Gzip isn’t computationally intensive (it is already used for web requests in KoLmafia, after all), but adding a setting for it would probably confuse a lot of people.