-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add support for Good General Cauchy Matrices #2
Conversation
- Separate function for encoding using Cauchy GC matrix - Add a common test
- Also update the tests
c_src/erasure.c
Outdated
/*int res = jerasure_bitmatrix_decode(k, m, w, bitmatrix, 0, erasures, data_ptrs, coding_ptrs, blocksize, blocksize/w);*/ | ||
/* This works but ONLY if you don't use smart mode (the last argument set to 1 uses smart mode) | ||
* smart mode seems to mis-allocate memory for the smart schedule and that causes segfaults */ | ||
int res = jerasure_schedule_decode_lazy(k, m, w, bitmatrix, erasures, data_ptrs, coding_ptrs, blocksize, blocksize/w, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't jerasure_bitmatrix_decode
faster than decode_lazy
when not using the smart mode?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me test that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, so, jerasure_bitmatrix_decode
is indeed slightly faster than the dumb mode decode_lazy
.
Quick test:
Decoded with jerasure_bitmatrix_decode - Bytes XOR'd: 6752.
jerasure_schedule_decode_lazy - Bytes XOR'd: 5696.
jerasure_schedule_decode_lazy_dumb - Bytes XOR'd: 6888.
No description provided.