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

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

Open
julio4 opened this issue Nov 22, 2024 · 15 comments · May be fixed by #267
Open

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

julio4 opened this issue Nov 22, 2024 · 15 comments · May be fixed by #267
Assignees
Labels

Comments

@julio4
Copy link
Contributor

julio4 commented Nov 22, 2024

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:

  • Run cairo-profiler
  • Read and interpret its output (mainly with graph and flame graph views from pprof)
  • Identify step-heavy operations
  • Apply optimizations there
  • Compare before/after metrics

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
Copy link
Contributor

raizo07 commented Nov 22, 2024

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

@ShantelPeters
Copy link

Hi @julio4 please can I work on this issue

@ryzen-xp
Copy link

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
Copy link
Contributor

Jemiiah commented Nov 22, 2024

Hello @julio4 please can I work on this issue

@OWK50GA
Copy link

OWK50GA commented Nov 22, 2024

I'd love to work on this!

@Amarjeet325
Copy link

I’d love to work on this task.

@mimisavage
Copy link

Is it okay if I tackle this?

@Supa-mega
Copy link

Could I take on this issue?

@htiennv
Copy link

htiennv commented Nov 22, 2024

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

@SoarinSkySagar
Copy link

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
Copy link

emarc99 commented Nov 22, 2024

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
Copy link

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.

@abdegenius
Copy link

I’d love to work on this task.

@julio4
Copy link
Contributor Author

julio4 commented Nov 27, 2024

@raizo07 Any help needed on this issue?

@raizo07
Copy link
Contributor

raizo07 commented Nov 27, 2024

@julio4 I'm on it ser

@raizo07 raizo07 linked a pull request Nov 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.