-
Notifications
You must be signed in to change notification settings - Fork 182
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
Remove -x-
encoding for marker attributes
#5038
Conversation
GitHub keeps crashing when I leave inline comments so I'll post them in a comment:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments left as a reply to the thread
The
To remove runtime parsing
Hello world is weird in the regard that some values have attributes and some don't. A marker will either always have attributes, or it won't. |
It's |
I have other comments that weren't addressed.
It's blob-specific right now, but it's up to DataProvider to define what a legal separator character or character sequence would be. This is not blocking.
I would appreciate some numbers for file size and compile time before and after this change, and ideally (optionally) in its own PR. Compile time for baked data really is becoming a real issue so I'm inclined to consider
Note that if we go with your current proposal in #4984 to model subdivisions as attributes, then we break this invariant. But I think this isn't actually an issue, since locales always have paths that end in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^
|
Please take a detailed look at blob. |
Can you give me an idea of compile times? If there's no substantial difference then I'm happy |
I don't notice a difference but I haven't benchmarked this. |
The error is
|
I had seen that, it doesn't really narrow it down for me. |
oh I approve this but it looks like you just added a debug print statement.
|
ZeroTrie builder in const mode assembles everything in a giant stack array. It does this because there is no const alloc. rust-lang/const-eval#20 And it moves the stack arrays around a lot. It does this because the only way to mutate an array in another function in const is to move it since there are no mutable pointers in const. rust-lang/rust#57349 I don't know for sure whether this is the stack overflow, but I'm just trying to list out cases where I'm aware of us having stack-heavy function calls. |
Maybe those methods should be inline(always) |
#3632
(&str, &str)
if needed, otherwise&str
as before