Results 415 comments of Jacob Lifshay

it's a constant with known length, I wouldn't consider "computing the length" to be a problem. e.g.: ```rust pub struct Location { pub fn file(&self) -> &'a str { unsafe...

one thing that changes though is that if we get an API to set the implicit `#[track_caller]` argument, that we'd have to pass a `&'static [u8]` in that has both...

if combined with the optimization in `Location`'s size, it's probably smaller to use nul-terminated strings, since each string is only needed for a whole file and only needs one more...

did you also try removing the length field from `Location` at the same time? that may save a lot more space since you'll commonly have many `Location` structs per file...

i don't expect linker deduplication to be able to do much (other than storing each file name once, but I assume rustc can do that itself) since file paths are...