-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Stop using @str
in the compiler
#10516
Comments
Can I take this? |
Go for it! Don't sweat too hard trying to remove all of them; the compiler can get real messy. |
Quick question: For functions that are currently returning |
They should return On Sat, Nov 16, 2013 at 7:16 PM, Kasey Carrothers
|
Is this still in progress? I've been making a decent foray into this area, but I don't want to steal someone else's ticket. |
Go for it. I've been struggling with it, and haven't had as much time as I hoped to work on it. |
@dguenther I think pcwalton was also working a bit on this (or something related to it) last week, so you may want to ping him (perhaps on IRC). |
I have an in-progress patch somewhere, can't find the patch atm. On Mon, Jan 13, 2014 at 11:45 AM, Felix S Klock II <[email protected]
|
Cool, I'll chat up pcwalton and see what progress he's made. I've got a working build with a significant portion of edit: pcwalton is currently working on this, so I'm going to hunt down another ticket to work on. |
Found it: https://github.com/cmr/rust/tree/issue-2243 On Mon, Jan 13, 2014 at 1:01 PM, Derek Guenther [email protected]:
|
This issue seems kind of fixed, greping for "@str" in I could create a tiny pull request, changing the comment if this would help to close this issue |
(Feel free to submit that PR though.) |
This tiny pull request updates a comment referring to `@str` which was replaced by `(InternedString,StrStyle)` . related to #10516
Use `split-debuginfo = "unpacked"` for debug builds On Windows this has no effect as it's unsupported. On macOS the default set by cargo is already unpacked so no effect there either For Linux it shaves a bit off the rebuild time, for me in the case of a simple `touch` + `cargo build` it goes from 12s to 10s It saves a good amount of disk space too, on `aarch64-unknown-linux-gnu` it saves 1.2GB for a plain `cargo build`, 3GB when also running `cargo dev` and `cargo test --no-run -F internal` r? `@flip1995` changelog: none
We almost never want it, and when we do, we're going to want to replace it with a custom interned string type rather than some GC type. We do a lot of pointless copies right now because we get
~str
from almost everything and we constantly dostr.to_managed()
.For now, convert to
&str
where we can, but replace every use ofstr.to_managed()
with~str
and mark with a comment like/* should be interned */
.The text was updated successfully, but these errors were encountered: