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

Compile with target-cpu for more optimizations #149

Merged
merged 1 commit into from
May 19, 2022

Conversation

simonvandel
Copy link
Contributor

According to https://github.com/awsdocs/aws-lambda-developer-guide/blob/main/doc_source/foundation-arch.md and https://github.com/awsdocs/aws-lambda-developer-guide/blob/main/doc_source/runtimes-avx2.md we can set these target-cpu settings.

I introduced a small refactoring so it's easier to encapsulate the architecture parsing.

Is cargo-lambda meant to work with both provided.al2 AND provided? I'm not sure what assumptions can be made about provided

According to https://github.com/awsdocs/aws-lambda-developer-guide/blob/main/doc_source/foundation-arch.md and https://github.com/awsdocs/aws-lambda-developer-guide/blob/main/doc_source/runtimes-avx2.md we can set these target-cpu settings.

I introduced a small refactoring so it's easier to encapsulate the architecture parsing.

Is cargo-lambda meant to work with both `provided.al2` AND `provided`? I'm not sure what assumptions can be made about `provided`
@calavera
Copy link
Collaborator

I'm not particularly interested in making it work for provided, since it's a legacy OS. If anyone wants to do the work, I'll be fine, but I would not worry about it very much.

@calavera
Copy link
Collaborator

Thanks a lot for making this changes!

@simonvandel do you mind running cargo fmt and cargo clippy on these changes? I have the impression that there are some formatting differences, and the PR approval will fail.

@simonvandel
Copy link
Contributor Author

I just double-checked cargo fmt and clippy; No changes. So should be ready for CI.

@calavera
Copy link
Collaborator

Thanks again for your contribution! I'll probably release a new version with this change this weekend.

@calavera calavera merged commit ca5fdea into cargo-lambda:main May 19, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants