Skip to content

Tracking issue for reducing future sizes #3356

@GnomedDev

Description

@GnomedDev

Serenity's future sizes are quite large, leading to clippy::large_futures warnings and suboptimal performance.

This is a list of known problems leading to these large futures.

  • The Http interface is forced to keep builders in futures even after serializing them, due to the &impl serde::Serialize signature.
  • Some functions take ownership of a type, then only use a couple fields even though it's carrying over an await point.
    • This probably requires enabling struct_lit_single_line in rustfmt settings.
  • More to be found

Metadata

Metadata

Assignees

No one assigned

    Labels

    httpRelated to the `http` module.trackingListing the progress on a particular development topic.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions