-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug for str
writes one byte at a time
#26920
Labels
I-slow
Issue: Problems and improvements with respect to performance of generated code.
Comments
steveklabnik
added
the
I-slow
Issue: Problems and improvements with respect to performance of generated code.
label
Jul 9, 2015
Reported a bug to gauge the importance. I'd tackle it, but is it a bug? Worth fixing? |
It seems silly to have unnecessarily slow code hanging around, but if the fixed code is complicated, maybe it's not worth it yet? |
I'm willing to give this a stab and #24588 while I'm at it, but unsure if this still relevant, or what current opinion on this might be. Should I give a go for these two? |
semmaz
added a commit
to semmaz/rust
that referenced
this issue
Sep 29, 2015
bors
added a commit
that referenced
this issue
Oct 2, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
Debug
formatter forstr
outputs one byte at a time to the underlying writer.We could improve this, for example we could skip forward while no escaping is needed, and if we find a char to escape, write the backlog and then write escape for the current char, and continue.
Exploration impl:
The text was updated successfully, but these errors were encountered: