Skip to content

perf(form): eliminate full-body clone before multipart parsing #74

Description

@ZhuchkaTriplesix

Context

Multipart path clones body_bytes before parsing, doubling memory footprint for large payloads.

Current code

  • src/dispatch.rs: parse_multipart(body_bytes.clone(), ...)

Goal

Remove avoidable clone and parse from owned buffer (or equivalent zero-extra-copy path).

Acceptance criteria

  • No full body_bytes.clone() in multipart parse flow.
  • Multipart tests remain green.
  • Memory footprint for large multipart uploads is reduced (qualitative note in PR).

Out of scope

  • Streaming multipart to disk.

Activity

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions