For testing purposes, pre-prepared prefix trees may be compared to those created on the fly.
Initial tests indicate that time-to-page-ready is less when the tree is created
on the client rather than downloaded as a prepared tree in a JavaScript include file.
This appears to be due to the great expansion needed to create the tree in JSON format.
Here are tests where the prefix tree is pre-prepared (downloaded already set up):
- Notes
-
The prepared trees are very large (1.2 MB for the
large-size test) and so are very sensitive to network bandwidth.
-
The prefix trees were created using the
Prefix Tree Generator
-
Big Tree Test
- 42,910 completions
- Data is loaded from server as a complete prefix tree in object literal JSON notation.
- Do not try this on IE 6 or IE 7!
-
Small Tree Test
- 1,195 completions
- Data is loaded from server as a complete prefix tree in object literal JSON notation.