Repository navigation
0.147.0: name_finder reads a text once whatever the names, and lists the names elements share - #46
Merged
Merged
Conversation
…the names elements share The matcher holds the names backwards with failure links and reads the text once from its end, so the work for a text grows with its length alone. find.shared lists every name two or more elements hold. The cases file moves to version 2, the same bytes as the TypeScript SDK's: 15 more cases, a shared list on every case, three timed recipes with a name of thousands of characters.
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The twin of the TypeScript SDK's change (OnlyWorlds/sdk pull request 61), from the same cases file.
name_finderwalked its trie again from every place a name could start, so the work for a text was its length times the longest name's length. It now holds the names backwards in one matcher with failure links and reads each text once, from its end to its start: the work grows with the text's length alone.It also adds
find.shared: every name two or more elements hold, each aNameShared(name,elements). The finder never answers such a name, and until now nothing said it was there.name_findernow answers aNameFinder, called on a text as before.No answer moves.
sharedlist on every case, three timed recipes with a name of thousands of characters).🤖 Generated with Claude Code