Spent an hour drafting a GitHub issue, then suddenly my tab disappeared and tossed out all my work :( No history, not showing up in closed tabs. Just gone. Big argh.
-
Show this thread
-
*back from gym* Okay, so I'm just gonna take this as a chance to draft a new version of this issue, but with even more research behind it. I think I found a routine in the compiler that's run several million times per run, and can probably be turned from 50 cycles -> 1 cycle.
2 replies 0 retweets 5 likesShow this thread -
(Big *if* here: I'm a dumbass with no Rust compiler experience. But filing an issue with all the research I have seems like the right way to get people with knowledge of the Rust compiler verify if what I think is true is actually true.)
1 reply 0 retweets 5 likesShow this thread -
Okay, filed the issue. Hope this actually ends up being useful, heh
https://github.com/rust-lang/rust/issues/68455 …2 replies 0 retweets 6 likesShow this thread -
Replying to @yoshuawuyts
This is an incredibly well written issue! If it goes somewhere I’m happy to help with the porting.
1 reply 0 retweets 1 like
I think the fastest way to validate this would be to put the AVX2 algorithm inside the body of run_utf8_validation: https://github.com/rust-lang/rust/blob/2f688ac602d50129388bb2a5519942049096cbff/src/libcore/str/mod.rs#L1500-L1618 … And then file a PR with it. From the PR there's already automated tooling in place to check performance changes!
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.