TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 230 subscribers
Post #25123 15
High-throughput log parsing (~500K lines/sec) in C++ without regex — looking for performance ideas

I’m building a log ingestion + parsing pipeline in C++ and trying to push throughput as far as possible.



Current setup:

\- \~500K lines/sec

\- custom tokenizer (no regex)

\- string_view everywhere to avoid copies

\- batch processing

\- append-only write path



Next step:

I want to optimize the query side using:

\- SIMD for substring search

\- possibly precomputed token patterns



Questions:

\- Best SIMD strategies for substring / token matching?

\- Any experience with AVX2/AVX512 for log-like workloads?

\- At what point does memory bandwidth become the bottleneck?



Also curious if anyone has benchmarked SIMD vs naive scan for log-style data.



Any pointers or war stories appreciated.

https://redd.it/1t37nr3
@r_cpp
Reddit From the cpp community on Reddit Explore this post and more from the cpp community
More from @r_cpp
  1. Oct 4, 2026Packing Binary Is Fun, Actually https://hereticpleb.vercel.app/blog/packing-binary-is-fun-…
  2. Oct 3, 2026I've tried "Token Sequence Injection & Modern Macros" and here are my thoughts We had this…
  3. Oct 3, 2026Compile Your First C++26 Program with GCC 16.2 https://techfortalk.co.uk/2026/05/04/compil…
  4. Oct 3, 2026Delegating Constructors Delegating constructors allow the default constructor of a class t…
  5. Oct 3, 2026You should think about recompiling your C++ programs with GCC 16 and C++26, because it zer…
  6. Oct 3, 2026Teodorescu - [https://youtu.be/vVFFW6hoG1Y](https://youtu.be/vVFFW6hoG1Y) * Demystifying C…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →