Skip to content

Commit 1975b06

Browse files
Revert "rustdoc search: add performance note about searchIndexUnstable check"
This reverts commit fdbc8d0.
1 parent 18fd6ea commit 1975b06

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/librustdoc/html/static/js/search.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3333,12 +3333,6 @@ class DocSearch {
33333333
}
33343334

33353335
// sort unstable items later
3336-
// FIXME: there is some doubt if this is the most effecient way to implement this.
3337-
// alternative options include:
3338-
// * put is_unstable on each item when the index is built.
3339-
// increases memory usage but avoids a hashmap lookup.
3340-
// * put is_unstable on each item before sorting.
3341-
// better worst case performance but worse average case performance.
33423336
a = Number(
33433337
// @ts-expect-error
33443338
this.searchIndexUnstable.get(aaa.item.crate).contains(aaa.item.bitIndex),

0 commit comments

Comments
 (0)