kmschaal
Joined 3 years ago
Karma
77
Submissions
29
Member since
Feb 19
Software developer and curious mind. www.m31coding.com
View on Hacker NewsJoined 3 years ago
The prefix search uses the same suffix array as the substring search. This approach might also be useful for other search libraries that rely on suffix arrays. It can improve the search experience with minimal additional effort.
Happy to discuss the implementation details if anyone’s curious!
So, in the end, I believe it's worthwhile to try different implementations and share our subjective experiences.
As a bonus you could cache the memento in the local storage or session storage.