Improve Zstd binary provided#93
Conversation
|
That progress bar is slick! I think the result page should show the ratio inverted
I was also wondering if it might make sense to make this repo a cargo workspace and put the zstd binary into it's onw crate? This might make dependency management and crate features less messy |
|
I agree that the ratio feels inverted, but it's how Facebook represents it (and I think most entities). It could be replaced with https://facebook.github.io/zstd/ Switching to a workspace makes sense, I'd be down for that and can implement that change if needed. |
|
The C-based zstd utility outputs the compression ratio as a percentage: |
That would be awesome!
I think that's just for benchmarking purposes (or rather for purposes of cool graphs). "Line go up" is visually more impressive than "Line go down". Since the C impl seem to show this as a precentage then that's the way I'd go too :) |
|
Okay, switching to a workspace has been done, and the ratio was switched to a percentage (as well as a more granular time display) Some future discussion topics:
|
|
Since we now have a workspace, maybe the local_corpus_files test can go into a separate crate too? Something like
I think at the scale of the CI we have right now we can just add a few scripts that run the commands of the CI locally instead of depending on yet another tool. Do you think that's reasonable or would a taskrunner bring any benefits I'm overlooking right now? (also sorry for the late response, didn't see that this PR moved from draft to open, I'll merge this soon) |
|
I created #95 to track the issue of the |
|
I think a separate crate could be beneficial, but it could possibly be broader than that, and be a dedicated crate for benchmarking, testing, and improving. Your feedback on a task runner is valuable and I see where you're coming from. I don't love the ecosystem around pretty much any script right now, but maybe when |
Closes #38
This PR introduces the addition of several crates to improve the ergonomics of the CLI.
The new CLI has been designed to be simple, ergonomic, and scale well as more features are added. It has a real time progress bar, along with an ETA. Once processing is complete, it presents basic stats about what happened.
If demand is present, backwards compatibility could be added under a
compatsubcommand.Future work building on this PR might involve the addition of a
benchsubcommand, and/or agen-dictsubcommand.Attached is a recording of the
decompresscommand in action