Skip to content

Make a version of char::escape_unicode that doesn't allocate #4423

Closed

Description

@catamorphism

As per FIXME (former XXX) in write_escaped_char in core::repr. I guess escape_unicode could be rewritten to take a closure of type fn(char).

Activity

  1. catamorphism commented on Jan 10, 2013

    @catamorphism
    ContributorAuthor

    Relatedly: the impls of Repr for float, f32, and f64 in the same file also malloc, when they don't have to.

  2. alexcrichton commented on Jun 30, 2013

    @alexcrichton
    Member

    Closed in d3155fa

  3. added a commit that references this issue on Jul 5, 2025
  4. added a commit that references this issue on Aug 21, 2026
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

    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