[issue7731] Search is sluggish

anatoly techtonik report at bugs.python.org
Mon Jan 18 12:22:36 CET 2010


New submission from anatoly techtonik <techtonik at gmail.com>:

docs.python.org site search is sluggish or may seem not working at all.

The reason is that before search starts, it requires a 800k+ index file to be loaded http://docs.python.org/searchindex.js

This file is usually cached. You might not notice sluggishness if it was cached when you loaded search page and were typing search query, but when you redirected to search page with get parameters the search is assumed to be started immediately. Unfortunately, JS execution delayed until index is loaded. Time controls are not updated, there is no indication what is going on and search may appear broken. User then clicks search button again and index starts loading anew.

The solution is to load index dynamically after first search request is made.

Attached patch is not tested with real server.

----------
assignee: georg.brandl
components: Documentation
files: doctools_search_response_speedup.diff
keywords: patch
messages: 98002
nosy: georg.brandl, techtonik
severity: normal
status: open
title: Search is sluggish
Added file: http://bugs.python.org/file15935/doctools_search_response_speedup.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7731>
_______________________________________


More information about the Python-bugs-list mailing list