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

inline smaller functions to avoid calling overhead #8

Open
rilysh opened this issue Nov 24, 2023 · 0 comments
Open

inline smaller functions to avoid calling overhead #8

rilysh opened this issue Nov 24, 2023 · 0 comments

Comments

@rilysh
Copy link

rilysh commented Nov 24, 2023

Hello,

I noticed some functions in this SHA256 implementation aren't inlined (where they possibly can be inlined). These are rotr(), choose(), majority(), sig0(), and sig1(). Compiler by itself will not perform these smaller inlines (without specifying special parameters). This will remove the possible overhead of calling those functions and thus can improve performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant