Code Monkey home page Code Monkey logo

blockyarchive's Introduction

reimaginedreadme

blockyarchive's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

blockyarchive's Issues

Improve code coverage via internal tests

Improve code coverage of the following files via internal tests

  • file_utils.rs
  • integer_utils.rs
  • misc_utils.rs
  • multihash.rs
  • rs_codec/encoder.rs
  • rs_codec/repairer.rs
  • sbx_block/header.rs
  • sbx_block/metadata.rs
  • sbx_block/mod.rs
  • sbx_specs.rs
  • time_utils.rs

Other files like *_core.rs, cli_*.rs, and functions that operate on files or require interaction with FS/OS are tested for code coverage by running debug binary through kcov with arguments attached
e.g. kcov --verify ... rsbx .... This is tracked by issue #58.

Update RSBX_SPECS

  • Add specs for burst error resistance level guessing
  • Update specs for show core
  • Add specs for repair core

rsbx leaves a blank space with --no-meta flag

For non RS enabled SBX versions, rsbx encode --no-meta ... will leave a blank spot in place of the metadata block.

Fixing this will require changing the SBX block write index calculation function.

Code refactoring w.r.t. rs_codec::encoder and encode_core::encode_file

Currently when RS is enabled, encode::encode_file keeps track of whether the current block set is full or not at the end of loop to decide whether to write data padding blocks.

This responsibility should be moved to rs_codec::encoder, with methods exposing number of empty slots, etc, to reduce work not directly related to encoding in encode_core.

Implement ring buffer

rb on crates.io only supports single producer single consumer,
but ideally a multi producer and mutli consumer queue is used.

Add --info-only flag to encode subcommand

Using the flag will cause the encode subcommand to display information then exit.

Information to display

  • Input file name
  • Output container name
  • Output container version
  • Output container block size
  • Output container data size
  • RS data count
  • RS parity count
  • Burst error resistance level
  • Input file size
  • Output container size
  • Input file modification time

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.