Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status tracker at head of Starch archive-in-progress #176

Open
alexpreynolds opened this issue Mar 16, 2017 · 1 comment
Open

Status tracker at head of Starch archive-in-progress #176

alexpreynolds opened this issue Mar 16, 2017 · 1 comment
Assignees

Comments

@alexpreynolds
Copy link
Collaborator

Examine reserving 256 or 512-byte block after the magic bytes to store a progress string that:

  1. Gets replaced every m elements by n chromosomes with a status string.
  2. Can be accessed with a small custom tool.
@alexpreynolds
Copy link
Collaborator Author

Perhaps this may not work if writing to an output stream. When writing to an output stream via stdout, the starch binary wouldn't know in advance where the compressed data are written to. It just writes to stdout and wipes its hands clean.

This should definitely work, however, if starch is set up with an --output-file <fn> option to instead write to a regular file, which can be fseek()-ed through and fread(), etc.

Perhaps another way to do this is to keep writing to stdout, but create a second, temporary status file that is deleted at the end of compression. Updates happen to this file's string the same way, but the status file is a regular file separate from the archive. We write a tool that accesses the bytes in this status file and processes them into human-readable form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant