Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Reduce copying for large payloads#92

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
marcomagdy wants to merge2 commits intoaws:main
base:main
Choose a base branch
Loading
frommarcomagdy:reduce-copying

Conversation

marcomagdy
Copy link

@marcomagdymarcomagdy commentedNov 29, 2023
edited
Loading

Description of changes:

Starting with aws-lambda-cppv0.2.7 we can move the payload from the outcome of the API. This should help performance especially for larger payloads.

A couple more small optimizations:

  1. Pass standard strings toNAPI::String::New rather than its C-string representationis faster.
  2. When checking if the string is empty, using.empty()is much faster than comparing to a literal empty string.

Target (OCI, Managed Runtime, both):

both

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Downchuck reacted with eyes emoji
Starting with aws-lambda-cpp v0.2.7 we can move the payload from the outcome of the API.This should help performance especially for larger payloads.Another small optimization is to check if string is empty rather thancompare it with a literal empty string.
@marcomagdy
Copy link
Author

Ping@andclt@carlzogh please take a look.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@andcltandcltandclt approved these changes

At least 2 approving reviews are required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@marcomagdy@andclt

[8]ページ先頭

©2009-2025 Movatter.jp