ashvardanian/StringZilla
View on GitHub ↗ ★ 3,579 C
Up to 100x faster strings for C, C++, CUDA, Python, Rust, Swift, JS, & Go, leveraging NEON, AVX2, AVX-512, SVE, GPGPU, & SWAR to accelerate search, hashing, sorting, edit distances, sketches, and memory ops 🦖
31 mentions on Hacker News by 11 people: 4 stories, 27 comments · first 2023-08-26 · latest 2026-08-05
20082026
-
…StringZilla? It has highly optimized case-fold and case-insensitive Unicode search kernels as well: https://github.com/ashvardanian/Stringzilla
comment by zX41ZdbW · 2026-08-05 · in Don't stop early: Case-folding source code at memory speed -
…right! It took a lot of time to make sure that all 6 of ISA-specific versions of StringZilla ( https://github.com/ashvardanian/StringZilla/blob/main/includ... ) return the same output for both one-shot and incremental construction, and I’m…
comment by ashvardanian · 2025-09-23 · in Processing Strings 109x Faster Than Nvidia on H100 -
…via `vpshufb` AVX512BW-capable CPUs [1] or via `tbl` instructions on NEON-capable CPUs [2]. [1]: https://github.com/ashvardanian/StringZilla/blob/2f4b1386ca2... [2]: https://github.com/ashvardanian/StringZilla/blob/2f4b1386ca2...
comment by ashvardanian · 2025-08-17 · in Counting Words at SIMD Speed -
…search or copy/move operation. In my projects, such as StringZilla, I often use mask K registers ( https://github.com/ashvardanian/StringZilla/blob/2f4b1386ca2... ) and an input-dependent mix of temporal and non-temporal loads and stores (…
comment by ashvardanian · 2025-08-11 · in Faster substring search with SIMD in Zig -
…`#ifndef` https://github.com/eyalz800/zpp_bits/blob/main/zpp_bits.h - `stringzilla` `#ifndef` https://github.com/ashvardanian/StringZilla/blob/main/includ...
comment by benreesman · 2025-07-11 · in Show HN: CXXStateTree – A modern C++ library for hierarchical state machines -
…be < https://github.com/intel/hyperscan >, < https://github.com/simdutf/simdutf >, and my own < https://github.com/ashvardanian/StringZilla > :)
comment by ashvardanian · 2025-07-05 · in The messy reality of SIMD (vector) functions -
…in case you are focused on ASCII, for vowel search, have you tried StringZilla’s `find_first_of` (< https://github.com/ashvardanian/StringZilla/blob/960967d78c7... >)? I think it should perform well ;)
comment by ashvardanian · 2025-06-14 · in SIMD-friendly algorithms for substring searching (2016) -
…but it should be faster than the standard libraries of most (or maybe all) programming languages. https://github.com/ashvardanian/StringZilla
comment by ashvardanian · 2025-05-03 · in Strings Just Got Faster -
…land, and the next major release to come is precisely around Full-Text Search in StringZilla < https://github.com/ashvardanian/stringzilla >, and will be integrated into both USearch < https://github.com/unum-cloud/usearch > and somewhere…
comment by ashvardanian · 2025-04-18 · in Less Slow C++ -
…somewhat different project layouts & dispatch mechanisms: https://github.com/ashvardanian/SimSIMD , https://github.com/ashvardanian/StringZilla One big family not covered there, is sparse data-strictures and related algorithms. I’ve only…
comment by ashvardanian · 2025-03-30 · in Towards fearless SIMD, 7 years later -
Here is the code I use to detect available CPU features at runtime and dispatch the correct kernels - https://github.com/ashvardanian/StringZilla/blob/main/c/lib.... There are also several AVX-512 kernels for different CPU generations, so…
comment by ashvardanian · 2025-03-12 · in Show HN: Krep a High-Performance String Search Utility Written in C -
…I've had a variant that uses 768 bytes with some extra logic, but will deprecate that kernel soon. https://github.com/ashvardanian/StringZilla/blob/0d47be212c5...
comment by ashvardanian · 2024-12-21 · in Dividing unsigned 8-bit numbers -
…quality and throughput on Arm, that was one of the key reasons to start a new library: https://github.com/ashvardanian/StringZilla/blob/91d0a1a02fa... Also not a huge fan of locale controls and wchar APIs :)
comment by ashvardanian · 2024-07-15 · in I'm not a fan of strlcpy(3) -
…one can get a 3x boost over the native `wc` CLI on a modern CPU, memory-mapping a very average SSD: https://github.com/ashvardanian/StringZilla/tree/main/cli
comment by ashvardanian · 2024-06-21 · in Wc2: Investigates optimizing 'wc', the Unix word count program -
…LibC in substring search operations. The comparison table is still available in the older README: https://github.com/ashvardanian/StringZilla/tree/v2.0.2?tab=...
comment by ashvardanian · 2024-02-20 · in Measuring energy usage: regular code vs. SIMD code -
Thank you! There are still a lot of good first issues: https://github.com/ashvardanian/StringZilla/issues?q=is%3Ais...
comment by ashvardanian · 2024-02-08 · in Show HN: StringZilla v3 with C++, Rust, and Swift bindings, and AVX-512 and NEON -
…exceed 1 GB/s/core [4], so more research is needed. If you have any ideas - I am all ears! [1]: https://github.com/ashvardanian/StringZilla/blob/bc1869a8529... [2]: https://github.com/ashvardanian/StringZilla/blob/bc1869a8529... [3]:…
comment by ashvardanian · 2024-02-04 · in How fast is rolling Karp-Rabin hashing? -
The author is also responsible for the StringZilla library that includes levenstein distance: https://github.com/ashvardanian/StringZilla
comment by lifthrasiir · 2024-01-24 · in SimSIMD: Hardware-accelerated similarity metrics and distance functions -
…Stringzilla is a cool library if you want to see a clean implementation of these algorithms: https://github.com/ashvardanian/StringZilla See my reply here about the file being cached completely in memory after the first run:…
comment by rockwotj · 2024-01-04 · in The One Billion Row Challenge -
…it has precomputed magic numbers and lookup tables for all 16-bit integers in the same repo. [1]: https://github.com/ashvardanian/StringZilla/blob/9f6ca3c6d3c... [2]: https://github.com/ridiculousfish/libdivide
comment by ashvardanian · 2023-12-28 · in 4B If Statements -
…compilers are practically useless. As a proof, I wrote what is now the StringZilla library ( https://github.com/ashvardanian/stringzilla ) and we've spent weeks with an Intel team, tuning the compiler, no result. So if you are processing a…
comment by ashvardanian · 2023-12-18 · in Python, C, Assembly – Faster Cosine Similarity -
…could go very very badly for longer needles. * It seems quite likely that your [confirmation step]( https://github.com/ashvardanian/Stringzilla/blob/fab854dc4fd... ) is going to absolutely kill performance for even semi-frequently…
comment by burntsushi · 2023-08-29 · in Stringzilla: Fastest string sort, search, split, and shuffle using SIMD -
Opened an issue in case someone wants to contribute: https://github.com/ashvardanian/Stringzilla/issues/25
comment by ashvardanian · 2023-08-29 · in Stringzilla: Fastest string sort, search, split, and shuffle using SIMD -
…shows the vectorized functions which seems like they could be simply called from regular C, e.g.: https://github.com/ashvardanian/Stringzilla/blob/fab854dc4fd...
comment by em3rgent0rdr · 2023-08-29 · in Stringzilla: Fastest string sort, search, split, and shuffle using SIMD -
the presentation: https://github.com/ashvardanian/Stringzilla/blob/main/bench/... provides more information (just in case you may have missed it)
comment by signa11 · 2023-08-29 · in Stringzilla: Fastest string sort, search, split, and shuffle using SIMD -
I took a look at Stringzilla ( https://github.com/ashvardanian/stringzilla ), and in addition to the impressive benchmarks, the API looks pretty straightforward. It's a new star in my collection! Thanks for open-sourcing this project!
comment by itkent · 2023-08-26 · in Show HN: Faking SIMD to Search and Sort Strings 5x Faster