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

[help wanted] some questions #24

Open
Heachy opened this issue Oct 19, 2023 · 1 comment
Open

[help wanted] some questions #24

Heachy opened this issue Oct 19, 2023 · 1 comment

Comments

@Heachy
Copy link

Heachy commented Oct 19, 2023

Hello, I have some questions about generating the logarithm table in your code.

In the generateLogTable function, why does the expression b = ((b - FIELD_SIZE) ^ polynomial); ensure that b is set to FIELD_SIZE different and non-repeating values?
Looking forward to your explanation, thank you.

@Heachy
Copy link
Author

Heachy commented Oct 25, 2023

Hello, I have some questions about the CodingLoop implementations you have written

Such as ByteInputOutputTableCodingLoop and InputOutputByteTableCodingLoop. In the case of the former, it uses byteCount as the outer loop, leading to the creation and destruction of too many temporary variables, ultimately resulting in
slower execution speed compared to the latter.
However, for OutputInputByteTableCodingLoop and InputOutputByteTableCodingLoop, even though the number of variable creations and destructions is similar, isn't it supposed to be fewer in the former? Why is it that the latter runs faster instead?

Here are my test results:

  • ByteInputOutputTableCodingLoop encodeParity: 163.9 MB/s
  • InputOutputByteTableCodingLoop encodeParity: 726.4 MB/s
  • OutputInputByteTableCodingLoop encodeParity: 477.1 MB/s

I hope to get some clarification from you.

@Heachy Heachy changed the title Question [question] Oct 26, 2023
@Heachy Heachy changed the title [question] [help wanted] some questions Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant