Commit 3c93f68
committed
rustdoc-search: prevent struct fields from blocking functions
This perf hack tweaks the inverted indexes so that fields appear
further down. This doesn't affect the results, because fields are
pushed to the bottom anyway, but it prevents us from having to
load the metadata (in order to actually figure out that it *is*
a field).1 parent 16b4ccc commit 3c93f68
File tree
3 files changed
+15
-1
lines changed- src/librustdoc
- formats
- html
- render
- static/js
3 files changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
246 | 250 | | |
247 | 251 | | |
248 | 252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1732 | 1732 | | |
1733 | 1733 | | |
1734 | 1734 | | |
1735 | | - | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
1736 | 1744 | | |
1737 | 1745 | | |
1738 | 1746 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| 295 | + | |
| 296 | + | |
295 | 297 | | |
296 | 298 | | |
297 | 299 | | |
| |||
0 commit comments