Coder Social home page Coder Social logo

Faster erasure codes about isa-l HOT 4 OPEN

intel avatar intel commented on August 21, 2024 2
Faster erasure codes

from isa-l.

Comments (4)

catid avatar catid commented on August 21, 2024

Without modifying ISA-L too much there are some quick optimizations possible:

(1) Modify the Cauchy matrix structure to make the first row all ones similar to Vandermonde matrix by dividing each column by the first element in that column.
Demonstrated here: https://github.com/catid/cm256/blob/master/cm256.cpp#L128
This means you can just XOR the first row:
https://github.com/catid/cm256/blob/master/cm256.cpp#L153
It's much faster if you have a lot of input data but just a few outputs..

(2) Use faster Schur-type-direct-Cauchy algorithm to produce LDU-decomposition of the generator matrix directly in O(N^2) instead of O(N^3).
Demonstrated here: https://github.com/catid/cm256/blob/master/cm256.cpp#L345

from isa-l.

dong-liuliu avatar dong-liuliu commented on August 21, 2024

thanks for the suggestion, Catid.
Let's start to understand these algorithms first.

from isa-l.

gbtucker avatar gbtucker commented on August 21, 2024

Thanks for the suggestions. Note that ec_encode_data() functions work for any encoding matrix. On (2) do I understand this correctly that it will only work on Cauchy encoding matrices? We did write a general matrix inverse using LU decomposition and a vectorized version but it seems the LU one was only marginally faster and only for very large n. We could add more example encoding matrices gf_gen_cauchy2_matrix(), etc. if useful.

from isa-l.

catid avatar catid commented on August 21, 2024

Yeah I think it’s slower for small matrices. The Cauchy specific LDU method was faster past 16 or so IIRC but it has been a while since I tested that. Also it doesn’t improve performance for banded matrices found in streaming erasure codes

from isa-l.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.