We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e8ebd5 commit fdbc8d0Copy full SHA for fdbc8d0
src/librustdoc/html/static/js/search.js
@@ -3291,6 +3291,12 @@ class DocSearch {
3291
}
3292
3293
// sort unstable items later
3294
+ // FIXME: there is some doubt if this is the most effecient way to implement this.
3295
+ // alternative options include:
3296
+ // * put is_unstable on each item when the index is built.
3297
+ // increases memory usage but avoids a hashmap lookup.
3298
+ // * put is_unstable on each item before sorting.
3299
+ // better worst case performance but worse average case performance.
3300
a = Number(
3301
// @ts-expect-error
3302
this.searchIndexUnstable.get(aaa.item.crate).contains(aaa.item.bitIndex),
0 commit comments