Understanding Galois Field limits and chunking
masterThe algorithm's capacity is constrained by the Galois Field exponent (c_exp). The maximum message length (including ECC symbols) and the maximum value of any single symbol is (2^c_exp) - 1.
- Default (GF(2^8)): Symbols are limited to values between 0 and 255. This is ideal for binary streams. The maximum total length (message + ECC) is 255.
- Chunking: If your message exceeds the length limit of the chosen field, the
RSCodecclass automatically applies chunking by splitting the message into smaller chunks and encoding/decoding them separately. This is transparent to the user. - Performance Note: Using higher fields (larger
c_exp) will slow down the algorithm because it cannot use the optimizedbytearraystructure and must usearray.array('i', ...)instead. Additionally, Reed-Solomon complexity is quadratic, so longer messages increase processing time quadratically.