-
Notifications
You must be signed in to change notification settings - Fork 83
dev: optimize conversion of bytes to words #940
Comments
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedHi, I have been contributing in odhacks for quite some time now and have expertise in rust and blockchain specs , few of them are
How I plan on tackling this issueI will replace all |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI am a cairo dev and and this can be leverged in this issue. How I plan on tackling this issueThis is a much simplier issue to solve so we need to locate all the ceil32(size) and replace them with a much cheater implementation |
Hi @enitrat may I ask how do you get the benchmark image? |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedPlease can I be assigned this issue? This would be my first time contributing to this ecosystem and I’d love to be given the opportunity. I am a blockchain Developer, and my experience includes html, css, react, JavaScript,TypeScript and solidity, python and Cairo. How I plan on tackling this issueTo solve this issue, I’d take the following steps: Please assign me. I'm ready to work. |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedhello i am a frontend dev and blockchain developer How I plan on tackling this issueAnalyze Existing Functions: Review the ceil32 and words_size functions for understanding. |
The maintainer enitrat has assigned lordshashank to this issue via OnlyDust Platform. |
Some benchmarks:
It's almost twice cheaper to to
(bytes+31) / 32
then to(ceil32(bytes) /32)
to compute the amount of 32bytes words required to representsize
bytes.ceil32(size)
usage throughout the codebase32bytes_words_size
marked as#[inline(always)]
The text was updated successfully, but these errors were encountered: