You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During some resource consumption profiling I noticed that the baseline searchindex.js size that I was comparing against dropped fairly (~30%) when a project is rebuilt. This occurs both on the development branch that I was using, and also for v7.4.4 mainline.
How to Reproduce
$ sphinx-build -b html doc _build_baseline # built once
$ sphinx-build -b html doc _build_rebuilt
$ sphinx-build -b html doc _build_rebuilt # built twice
$ find _build* -type f -name 'searchindex.js' -exec ls -sh {} +
476K _build_baseline/searchindex.js 352K _build_rebuilt/searchindex.js
Comparing the contents of the searchindex.js files, the difference appears to be that indexentries section of the file contains different results; many are missing from the rebuilt copy. The first item that is missing is a key with name --author.
...because during a non-fresh rebuild -- especially a no-change rebuild -- we don't re-scan all documents, so we are not likely to re-discover all required index directives/entries (and therefore they are missing in the searchindex.js output).
Describe the bug
During some resource consumption profiling I noticed that the baseline
searchindex.js
size that I was comparing against dropped fairly (~30%) when a project is rebuilt. This occurs both on the development branch that I was using, and also for v7.4.4 mainline.How to Reproduce
Comparing the contents of the
searchindex.js
files, the difference appears to be thatindexentries
section of the file contains different results; many are missing from the rebuilt copy. The first item that is missing is a key with name--author
.Environment Information
Sphinx extensions
Additional context
Discovered during work on #12596.
The text was updated successfully, but these errors were encountered: