aws / aws/aws-lambda-rust-runtime

Consider making `aws_lambda_events::encodings::Body::Text` a `Cow<'static, str>`

Open
#951 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
3.6k
Forks
396
PR merge metrics
No merged PRs in 30d

Description

This would reduce the amount of allocations needed when the body content is known at compile time

Contributor guide

Open the contributing guide

Research direction

Start by locating aws_lambda_events::encodings::Body::Text and its usages in the repository. Check how compile-time body content is represented and how changing it to Cow<'static, str> would affect callers; done means the representation reduces unnecessary allocations without breaking existing behavior or builds.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cloud
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.