Closed luan-xiaokun closed 3 days ago
You are timing everything for galois
. There is the JIT compilation of the finite field(s) and their lookup tables (for fast execution). Sage is pre-compiled, where galois
is just-in-time compiled. I wouldn't expect them to be the same.
Also, creation time should matter less than encode/decode times.
Hi @mhostetter, thank you for the explanation!
That makes a lot of sense, especially about the JIT compilation in galois versus Sage's pre-compilation.
Thanks for the very useful library!
I am struggling to use Sage's Reed Solomon code. Although it has linting issue and more difficult to use than Galois (thanks again), I noticed that it is faster than Galois though, my tests are as follows:
I wonder why there is such a difference, is it something related to JIT? I'm a newbie in terms of symbolic computation (and Sage and Galois), any explanation or link to references would be much appreciated.