-
Notifications
You must be signed in to change notification settings - Fork 23
Make the static arrays of style-affecting attributes thread-local. #28
base: master
Are you sure you want to change the base?
Conversation
…tead of regenerating and dropping them on the stack over and over. Reduces I-cache footprint and memory barrier traffic on ARM.
|
Could they be completely static, with https://crates.io/crates/lazy_static , rather than thread-local? |
|
I've never seen any proof that this code is actually necessary. |
|
@SimonSapin I looked into that, but |
|
Can't we make |
|
Do we have |
|
Not yet. I can rustup though. There's some major plugins renaming but not much more as far as I can tell. (Having done the feature audit I sort of can gauge rustup difficulty now :) ) |
|
I thought we got it in the last rustup. At the very least, the last rustup had support for const functions in libsyntax asts. |
|
Oh, right. We should have it then. |
|
@pcwalton ping |
|
pinging @pcwalton again |
|
|
|
Hasn’t |
|
Ah, here is why they’re not … which is not gonna change as long as we use reference counting. |
|
… unless the language-level restriction is lifted: rust-lang/rfcs#1111 |
... instead of regenerating and dropping them on the stack over and over.
Reduces I-cache footprint and memory barrier traffic on ARM.
r? @SimonSapin