NethermindEth / StarknetByExample

A collection of examples of Cairo smart contracts for Starknet.
https://starknet-by-example.voyager.online/
MIT License
120 stars 86 forks source link

Feat: How to use profiler to optimize gas usage #261

Open julio4 opened 1 day ago

julio4 commented 1 day ago

Description

In this example, we will use cairo-profiler to learn how to analyze execution traces to help developers optimize L2 ressource usage and debug their contracts.

It should use a simple but unoptimized contract example (e.g., array manipulation or mapping iteration) to demonstrate how to:

ODHack

To be eligible for additional rewards, be sure to review and follow the ODHack Common Guidelines and Contributing Guidelines. Be sure to join the telegram group and introduce yourself.

raizo07 commented 1 day ago

Hello @julio4 can I be assigned to work on this?

ShantelPeters commented 1 day ago

Hi @julio4 please can I work on this issue

ryzen-xp commented 1 day ago

Hi, I am proficient Blockchain developer expert in Cairo , Rust and Solidity and also in web development. I have contributed many cairo ,rust projects like chainevents , arkprojects etc . please /assign this issue . Thank You

Jemiiah commented 1 day ago

Hello @julio4 please can I work on this issue

OWK50GA commented 1 day ago

I'd love to work on this!

Amarjeet325 commented 1 day ago

I’d love to work on this task.

mimisavage commented 1 day ago

Is it okay if I tackle this?

Supa-mega commented 1 day ago

Could I take on this issue?

htiennv commented 1 day ago

Hi, i would like to take this problem. I have experience on profiler, thanks

SoarinSkySagar commented 17 hours ago

May I work on this issue @EjembiEmmanuel?

I am a cairo dev with extensive experience in building on cairo and also a regular contributor at @keep-starknet-strange and the starknet ecosystem in general. You can see my PoW on my github and onlydust profile.

my approach: I will create a new simple contract as an example which will be using the cairo-profiler to demonstrate all the aspects mentioned in the issue.

eta: 4 days

emarc99 commented 14 hours ago

I just graduated from a basecamp, completed startklings 2.0 and Node Guardians quests. Let me to do to acquire more real life application and contribution. ETA: 3 day

baitcode commented 13 hours ago

Background: https://nodeguardians.io/character/baitcode + several contributions to notable cairo project. Will happily do that. I'd pick an binary Merkel tree bilding algorithm from the operation log. It will include array iteration, hashing, bitwise operations and recursion. Will be interesting to work through this.