

Github update to latest memchr + upgrade to Rust 2018 + bump MSRV to Rust 1.41 b...
source link: https://github.com/rust-lang/regex/pull/767
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

The main motivation for this PR is to use the new memmem implementation in memchr 2.4
(not quite released at time of writing, but in a PR). This let's us delete regex's own bespoke substring search implementations ("FreqyPacked" along with Boyer-Moore). The main benefit of the new implementation is that it should roughly maintain the speed of the old algorithms, but keep its speed in a lot more cases. i.e., It should have far fewer weaknesses. Plus, the algorithm is now available for anyone to use without bringing in regex
.
While we're here, we (finally) move to Rust 2018 and bump the MSRV to Rust 1.41 (since that's what's in Debian Stable). There's no particular reason why I waited so long to do this. It was never my intent to support such an old version of Rust for so long. There was just never a strong impetus to upgrade. But with Rust 2021 around the bend, it seems appropriate to at least migrate to Rust 2018. Hopefully we'll get to Rust 2021 sooner.
(The plan is to merge this PR once I do a similar change to the aho-corasick
crate.)
Recommend
-
38
Dodrio is a virtual DOM library written in Rust and WebAssembly. It takes advantage of both Wasm’s linear memory and Rust’s low-level control by designing virtual DOM rende...
-
12
Conversation Member
-
10
A cry for attention — New Xiaomi smartphone has an extra screen in… uh, the camera bump? Leaked hands-on video shows off Xiaomi's curious new display location. ...
-
10
Opened 3 months ago by freedreno/a6xx: bump varyings limit GL_MAX_VARYING_COMPONENTS is bumped t...
-
13
Today's Mortgage and Refinance Rates: April 3, 2021 Mortgage and refinance rates by state ...
-
12
AT&T's entry and mid-level fiber plans get a 200 Mbps speed bumpThe company's base plan now comes with a 300 Mbps connection.
-
4
Retail As UGC gets a pandemic bump, brands need to leverage customer content now Luggage maker Calego says...
-
6
LLVM and memchr 19 Jul 2020 LLVM, the back end of Clang, does something remarkable with this ordinary-looking call to memchr: bool is_whitespace( char ch ) { return std::memchr( " \t\r\n...
-
8
KB5015882: Latest Windows 11 update brings upgrade option right at startup...
-
9
Xbox app on Windows gains a sidebar upgrade with latest update...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK