tantivy icon indicating copy to clipboard operation
tantivy copied to clipboard

The Streamer with A=AlwaysMatchAutomaton does not need to maintain a stack of states

Open fulmicoton opened this issue 2 years ago • 1 comments

This is an optimisation for the AlwaysMatchAutomaton

fulmicoton avatar Apr 02 '23 08:04 fulmicoton

We can probably improve the code with the poor man's specialization.

if automaton.always_match(state) {
   // ...
}

or even

if A::always_match() {
   // ...
}

fulmicoton avatar Apr 06 '23 00:04 fulmicoton