From 1975b06583cb558f82d8cc92ab5b672d9290acf3 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 14 Aug 2025 13:02:56 +0200 Subject: Revert "rustdoc search: add performance note about searchIndexUnstable check" This reverts commit fdbc8d08a63a3d34b7aebabb2f18a768462a98c4. --- src/librustdoc/html/static/js/search.js | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src') diff --git a/src/librustdoc/html/static/js/search.js b/src/librustdoc/html/static/js/search.js index 10e01b4e262..516e857ee76 100644 --- a/src/librustdoc/html/static/js/search.js +++ b/src/librustdoc/html/static/js/search.js @@ -3333,12 +3333,6 @@ class DocSearch { } // sort unstable items later - // FIXME: there is some doubt if this is the most effecient way to implement this. - // alternative options include: - // * put is_unstable on each item when the index is built. - // increases memory usage but avoids a hashmap lookup. - // * put is_unstable on each item before sorting. - // better worst case performance but worse average case performance. a = Number( // @ts-expect-error this.searchIndexUnstable.get(aaa.item.crate).contains(aaa.item.bitIndex), -- cgit 1.4.1-3-g733a5