Comments (6)
A few ways out of this:
- Regress decompression parallelism.
- Create a complex system separating the
main
thread from decompression and compression threads so they communicate via messages, and themain
thread handles the logic of outputting and reading input, so this never happens.
The latter is optimal, Ouch needs to separate the text outputting from the compression/decompression threads to achieve better performance and fix #77.
However, we don't have the workforce available to do such a system and maintain it in the long run, this project is stalled already with easy-to-fix bugs, so imagine having complex ones.
@figsoda thoughts?
from ouch.
But how to stop output from other threads from getting in the way of Y/n prompts?
Good point, I don't think that's possible without having more complex system then
Do we stop all progress by holding a
stderr
lock?
I don't think it works just by holding the stderr lock. If you mean the static lock, I think that might have a performance implication if we have to check every time we print anything to stderr
from ouch.
2. Create a complex system separating the
main
thread from decompression and compression threads so they communicate via messages, and themain
thread handles the logic of outputting and reading input, so this never happens.
If we want a simpler solution, we can probably just have a static lock for Y/n prompts
from ouch.
If we want a simpler solution, we can probably just have a static lock for Y/n prompts
But how to stop output from other threads from getting in the way of Y/n prompts?
Do we stop all progress by holding a stderr
lock?
from ouch.
Related Issues (20)
- `--format` flag order matters HOT 1
- -g or --gitignore doesn't seem to work HOT 3
- Flag `-g/--gitignore` doesn't ignore the default `.git*` files HOT 4
- Error message for `--format .tar.gz` outputs empty extension HOT 1
- Make support for format a feature
- Remove LZMA support
- Evaluate Profile-Guided Optimization (PGO) and LLVM BOLT
- Colored output for completed task HOT 1
- Add `list-formats` subcommand to show support-status of each format, with optional JSON output HOT 3
- Clarify that .sz refers to Google's Snappy format
- Supporting unrar introduces licensing issues
- The binary archives for the v0.5 release seem to actually be for a prerelease version HOT 3
- The "Dependencies" section of the README seems outdated. HOT 1
- Support for encrypted archives HOT 1
- publish to windows winget package manager HOT 2
- Add `iso` format HOT 3
- Support "zst" and "zstd" for ZStandard HOT 6
- Does ouch support permissions like `--xattrs`? HOT 4
- progress indicator HOT 19
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ouch.