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

Add support for Good General Cauchy Matrices #2

Merged
merged 14 commits into from
Jan 7, 2019
Merged

Conversation

vihu
Copy link
Member

@vihu vihu commented Jan 3, 2019

No description provided.

@vihu vihu requested a review from Vagabond January 3, 2019 00:16
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);
Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me test that

Copy link
Member Author

@vihu vihu Jan 7, 2019

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.

@Vagabond Vagabond merged commit 1697137 into master Jan 7, 2019
@Vagabond Vagabond deleted the rg/gc-cauchy branch January 7, 2019 22:46
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

Successfully merging this pull request may close these issues.

2 participants