Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →
Top 10 Rust String Projects
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Project mention: Regular Expression Matching Can Be Simple and Fast (2007) | news.ycombinator.com | 2024-05-21As the author of ripgrep, I wouldn't necessarily buy this. I suppose I might agree with it in the extremes, but SIMD prefilters are quite exceptionally difficult to beat with scalar code in the common cases. Longer patterns are great for the SIMD algorithms in ripgrep because of its use of background frequency distribution heuristics. That is, the longer the pattern, the less likely your candidate detection is to produce a false positive in its hot path.
I don't mean to 100% disagree with you, but I think it's misleading to suggest a sort of one dimensional view of things where, as the pattern gets larger, SIMD gets worse compared to sublinear search algorithms. There are other factors at play here, and, importantly, what "long" means in this context.
In many practical circumstances, "short" might be a few bytes, while "long" is 16 bytes. But maybe your idea of "long" is actually much longer.
If you're curious how your own algorithm stacks up to ripgrep's, you can plug your implementation into the `memchr` crate's benchmark harness: https://github.com/BurntSushi/memchr
It uses rebar: https://github.com/BurntSushi/rebar
Project mention: Announcing readable 0.10.0 - stack allocated human-readable strings | /r/rust | 2023-10-06
Rust String related posts
-
Regular Expression Matching Can Be Simple and Fast (2007)
-
Memchr: Optimized string search routines for Rust
-
Rust-Cache
-
Stringzilla: Fastest string sort, search, split, and shuffle using SIMD
-
Rust memchr adds aarch64 SIMD with impressive speedups
-
Ripgrep now twice as fast on Apple Silicon with new aarch64 SIMD implementations
-
Consuming Vec<T> during pattern matching, where T is not Copy, but Clone
-
A note from our sponsor - InfluxDB
www.influxdata.com | 1 Jun 2024
Index
What are some of the best open-source String projects in Rust? This list will help you:
Project | Stars | |
---|---|---|
1 | rust-memchr | 762 |
2 | compact_str | 543 |
3 | imstr | 237 |
4 | string-interner | 162 |
5 | flexstr | 146 |
6 | decancer | 88 |
7 | array_tool | 75 |
8 | readable | 13 |
9 | zero-copy-pads | 5 |
10 | expand | 1 |
Sponsored