Skip to content

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

Closed as not planned

Description

@FalkWoldmann

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

Activity

  1. FalkWoldmann commented on Jan 2, 2025

    @FalkWoldmann
    ContributorAuthor

    After trying it out a bit, unfortunately this doesn't look like it's that easy to do since impl<'a> From<&'a str> for Body does not live long enough. We could implement something like from_static_string but that would be quite uneconomic

  2. github-actions commented on Oct 11, 2026

    @github-actions

    This issue is now closed. Comments on closed issues are hard for our team to see.
    If you need more assistance, please either tag a team member or open a new issue that references this one.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions