Hacker News new | ask | show | jobs
by davidw 2984 days ago
FWIW, xz is also a memory hog with the default settings. I inherited an embedded system that attempts to compress and send some logs, using xz, and if they're big enough, it blows up because of memory exhaustion.
1 comments

"xz is also a memory hog with the default settings"

Then why use the default settings?

I tend to use the maximum settings, which are much more of a memory hog, but I have enough memory where that's not an issue.

Just use the settings that are right for you.

You'd have to ask the guy who wrote the code in the first place.

I think he saw "'best' compression" and stopped looking there.

I didn't mean to ask why the defaults are defaults, but rather why anyone would use the defaults rather than settings more appropritate to their use case?

It's not like xz is unable to be lighter on memory, if that's what you want. It's an option setting away.

To clarify: you'd have to ask the guy who wrote our code.