← All projects
Project record1 mention
Originally shared on Hacker News

Suffix-sorting substring index for regex query acceleration

A suffix-sorting substring index built to accelerate regex-based scanning queries over terabyte-scale collections of short string records. Unlike generalized suffix tree approaches that concatenate all strings into one giant string, it handles many small independent records with a slightly simpler structure and harder search, achieving indexing throughput in the GBps for the sorting part. Its output is a 4n or 8n-sized set of integers that can feed into compressed rank/select structures (e.g., Roaring Bitmaps) for space/indexing-time/retrieval-time tradeoffs. Currently at proof-of-concept stage, with details still being written up and a potential Show HN post planned.

Last shared
01 / The problem

What it addresses

A terabyte of short string records is regularly scanned with regexes to develop classification criteria, and conventional suffix-indexing approaches have big throughput constants at that scale.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Suffix-sorting substring index for regex query acceleration

    A suffix-sorting substring index built to accelerate regex-based scanning queries over terabyte-scale collections of short string records. Unlike generalized suffix tree approaches that concatenate all strings into one giant string, it handles many small independent records with a slightly simpler structure and harder search, achieving indexing throughput in the GBps for the sorting part. Its output is a 4n or 8n-sized set of integers that can feed into compressed rank/select structures (e.g., Roaring Bitmaps) for space/indexing-time/retrieval-time tradeoffs. Currently at proof-of-concept stage, with details still being written up and a potential Show HN post planned.

    Problem: A terabyte of short string records is regularly scanned with regexes to develop classification criteria, and conventional suffix-indexing approaches have big throughput constants at that scale.

    Posted by @kwillets · Original source ↗

    Source text · @kwillets · · Source ↗

    I came up with a suffix-sorting index for this domain that's interestingly simple. Most algos for this use a generalized suffix tree that's built by concatenating all the strings into one giant string and feeding it into a conventional suffix sort, but that has some big constants on the indexing throughput, due I think to the overhead of handling one giant string instead of a bunch of small independent records. In the latter case, by making the structure slightly simpler and search slightly harder, I can get indexing throughput in the GBps, at least for the sorting part.