Giter Club home page Giter Club logo

Comments (3)

lrq3000 avatar lrq3000 commented on May 27, 2024 1

Thank you for your feedback and your question. This is almost certainly due to the automatic chunking that is done in the RSCodec.encode() method. Although I agree it would be better if it could have a more predictable behavior, the chunking is dynamically done based on n-k (size of the input message minus the ecc bytes).

Instead of trying to predict when the chunking will happen, I would rather suggest that you forego using the RSCodec object which always was intended as an easier facade interface to use the Reed-Solomon algorithm. Instead you can use the low-level interface, so that there is no chunking, you can fully control the whole encoding process.

Anyway, if you can provide me with a self-contained minimalistic reproducible example code, then I can investigate this issue further and try to improve the reproducibility of RSCodec chunking in the future.

from reedsolomon.

Cioscos avatar Cioscos commented on May 27, 2024

I've created this plot to understand the trend of the difference between input and output size when the input grows up.

image

The tests confirm that the implementation has this behavior which is kinda unpredictable if you don't test before.

from reedsolomon.

Cioscos avatar Cioscos commented on May 27, 2024

Thank you for your feedback and your question. This is almost certainly due to the automatic chunking that is done in the RSCodec.encode() method. Although I agree it would be better if it could have a more predictable behavior, the chunking is dynamically done based on n-k (size of the input message minus the ecc bytes).

Instead of trying to predict when the chunking will happen, I would rather suggest that you forego using the RSCodec object which always was intended as an easier facade interface to use the Reed-Solomon algorithm. Instead you can use the low-level interface, so that there is no chunking, you can fully control the whole encoding process.

Anyway, if you can provide me with a self-contained minimalistic reproducible example code, then I can investigate this issue further and try to improve the reproducibility of RSCodec chunking in the future.

Hi! Thank you very much for your answer!
So I can't send my original code since it works with files so I've created a gist with the code used to generate the plot.

About the "low-level interface" I would like to use it but I'm not enough expert to understand how it work since I don't know how the reed-solomon error correction codes works. Can you hep me with a brief example for my case?

from reedsolomon.

Related Issues (20)

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.