Skip to content

to_string causes crazy memory usage problems #16415

Closed
@thestinger

Description

@thestinger

5u32.to_string().byte_capacity() -> 128
"foo".to_string().byte_capacity() -> 128

I think the right solution to this is adding size hints to the underlying formatting system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-compiletimeIssue: Problems and improvements with respect to compile times.I-slowIssue: Problems and improvements with respect to performance of generated code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions