memchr icon indicating copy to clipboard operation
memchr copied to clipboard

Optimized string search routines for Rust.

Results 23 memchr issues
Sort by recently updated
recently updated
newest added

In several cases, memchr force-enables the SIMD feature on wasm32 (for example [here](https://github.com/BurntSushi/memchr/blob/cedf318090876c6d557f234b158dd4fdc91c41ec/src/arch/wasm32/simd128/packedpair.rs#L63)). This has been an issue for me because, in a fairly large project where memchr is used...

question

Given #133, and how widespread this crate is to the ecosystem, semver related bugs should not be taken lightly. Perhaps CI could check for the common offenders using [`cargo-semver-check`](https://github.com/obi1kenobi/cargo-semver-check). Running...

question

Using VS Code I was browsing to the definitions of memchr for AArch64. I expected to find everything platform specific in src/arc/aarch64. After some head head scratching I figured that...

enhancement

Behind this generic request, here is my actual problem: running code that uses memchr under miri fails with the following: ``` error: unsupported operation: can't call foreign function `llvm.aarch64.neon.umaxp.v16i8` on...

Resubmit of PR #151. That PR was reverted because it broke big endian implementation and CI did not catch it (see the revert PR #153 for details). Andrew, thank you...

This should hopefully ease maintenance of the crate and enable easier wide refactoring. Also, the `wasm32-wasi` target was renamed to `wasm32-wasip1`, and the former is going to be removed soon,...

`serde_json` has a hot loop in string parsing that searches for a `"`, a `\`, or a control character (ASCII 0x00-0x1f). I've seen a speedup from the user of memchr...

enhancement

This is in response to @samuelcolvin's [tweet] about Rust's standard library substring search routines being slow. This PR hooks up his naive implementation of substring search to memchr's [rebar] harness...

Sometimes it's necessary to search for the first occurrence that is *not* a particular byte (the most obvious example is checking if a buffer is all NUL-bytes and returning the...

enhancement

Currently `memchr` does run-time feature detection for x86, storing 'preferred' functions inside a field that is later referenced in subsequent calls ```rust // Inside `unsafe_ifunc!` // store FN.store(fun as Fn,...