In the typical case, users type one character at a time, so the previous needle ends up being a prefix of the new needle. In this case, rather than calculating the scoring matrix for the entire needle x haystack, we can calculate it only for the new characters in the needle. If a user has typed 8 characters and types a 9th, this would lead to a theoretical 8x speedup.
We should also look at the implementation from nucleo to see what kind of interface we should expose
Related alexpasmantier/television#19
In the typical case, users type one character at a time, so the previous needle ends up being a prefix of the new needle. In this case, rather than calculating the scoring matrix for the entire needle x haystack, we can calculate it only for the new characters in the needle. If a user has typed 8 characters and types a 9th, this would lead to a theoretical 8x speedup.
We should also look at the implementation from nucleo to see what kind of interface we should expose
Related alexpasmantier/television#19