- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 2.3k
 
Description
Is your feature request related to a problem? Please describe.
While trying to find out about something mostly unrelated in the Python JSON encoding documentation, I realized: we don't use the minimal whitespace representation when dumping our search index to JSON.
Describe the solution you'd like
Configure the documented minimal-whitespace separators when serializing the JSON searchindex.
For the self-built Sphinx documentation, this achieves a disk-space reduction for the search index from 574K to 500K.
Describe alternatives you've considered
N/A
Additional context
The Sphinx codebase does sometimes load from the existing searchindex.js file -- in order to support adjustments to the search index during incremental builds.  So we do need to retain round-trip ability here; but that's OK, whitespace between separators in JSON should be insignificant (parser-wise).