Open maciejka opened 1 day ago
Hi @maciejka
Please can I work on this?
Hi @maciejka Please can I work on this?
HMMMM
@maciejka let work and optimize this part of the code,
here is how i will approach,
Change Buffer Type: Update the codec module to use Array
Test and Benchmark: After implementing the change, thoroughly test the encoding and hashing process to ensure data integrity and then benchmark it to verify the performance improvement.
Hey @maciejka Can I take this up, as I have worked with encode trait before
Interested too. Exercise I've already done and am familiar with Encode
Currently we use Encode trait to serialize data before hashing. There is a performance problem in this approach as ByteArray, which is a type of the buffer we serialize to, is not the type sha256 works with. So ByteArray needs to be converted to
Array<u32>
before hashing. It would be more optimal to useArray<u32>
as a buffer type in the codec module.