erigon-pulse/patricia
ledgerwatch 240f7f1212
Patricia tree (binary) as a memory efficient alternative to Aho-Corassick (#97)
* First commit

* Refactor

* Fixes

* Now with fuzz tests

* Add matching

* Fixes for empty key

* Reduce garbage during matching

* Swap state objects

* Find longest matches

* Simplify FindLongestMatches

* Simplify matches

* Switch from pointers to Match

* Use pointer for pt

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-10-06 15:28:56 +01:00
..
testdata/fuzz/FuzzPatricia Patricia tree (binary) as a memory efficient alternative to Aho-Corassick (#97) 2021-10-06 15:28:56 +01:00
patricia_fuzz_test.go Patricia tree (binary) as a memory efficient alternative to Aho-Corassick (#97) 2021-10-06 15:28:56 +01:00
patricia_test.go Patricia tree (binary) as a memory efficient alternative to Aho-Corassick (#97) 2021-10-06 15:28:56 +01:00
patricia.go Patricia tree (binary) as a memory efficient alternative to Aho-Corassick (#97) 2021-10-06 15:28:56 +01:00