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

optimize crypt speed by inlining #4

Merged
merged 1 commit into from
Oct 11, 2017
Merged

optimize crypt speed by inlining #4

merged 1 commit into from
Oct 11, 2017

Conversation

xtaci
Copy link
Contributor

@xtaci xtaci commented Oct 10, 2017

I think you guys need to optimize the core part of SM4 by inlining, such as feistel, sbox, shifting.

function calls themselves consumes the major portion of CPU usage, according to my profiling.

by eliminating function calls will definitely improve speed, expecting 4x speed up if we optimized good enough.

@qsuai qsuai requested review from nnsgmsone and removed request for nnsgmsone October 11, 2017 01:02
@tjfoc tjfoc merged commit e3a572c into tjfoc:master Oct 11, 2017
@tjfoc
Copy link
Owner

tjfoc commented Oct 11, 2017

great. thanks.

czdsdo pushed a commit that referenced this pull request Dec 1, 2021
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

Successfully merging this pull request may close these issues.

2 participants