forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#119001 - notriddle:notriddle/searchwords, r=G…
…uillaumeGomez rustdoc-search: remove parallel searchWords array This might have made sense if the algorithm could use `searchWords` to skip having to look at `searchIndex`, but since it always does a substring check on both the stock word and the normalizedName, it doesn't seem to help performance anyway. Profile: http://notriddle.com/rustdoc-html-demo-8/searchwords/index.html
- Loading branch information
Showing
4 changed files
with
48 additions
and
56 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
const EXPECTED = { | ||
'query': 'waker_from', | ||
'others': [ | ||
{ 'path': 'substring::SuperWaker', 'name': 'local_waker_from_nonlocal' }, | ||
{ 'path': 'substring::SuperWakerTask', 'name': 'local_waker_from_nonlocal' }, | ||
], | ||
}; | ||
const EXPECTED = [ | ||
{ | ||
'query': 'waker_from', | ||
'others': [ | ||
{ 'path': 'substring::SuperWaker', 'name': 'local_waker_from_nonlocal' }, | ||
{ 'path': 'substring::SuperWakerTask', 'name': 'local_waker_from_nonlocal' }, | ||
], | ||
}, | ||
{ | ||
'query': 'my', | ||
'others': [ | ||
{ 'path': 'substring', 'name': 'm_y_substringmatching' }, | ||
], | ||
}, | ||
]; |
This file contains 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