Description: Generates a prefix tree in json format, from a flat JavaScript array. Useful, among other things, for creating pre-built completion trees for use with autocomplete. Providing a pre-built prefix tree saves the client the time needed to build one up.
Works with: JavaScript class Et1.oModel.oDataStructures.oCollections.PrefixTree
,
located at: et1/src/lib/model/data_structures/collections/PrefixTree.js
If you are crunching a source file greater than 10 Kbytes in size, increase your browsers "stop script?" dialog timeout by about one minute for every 10 Kbytes you plan to crunch. On Firefox, do this by doing the following:
about:config
into Firefox web address bar and press 'enter'.dom.max_script_runtime
.
See: The test harness at:
et1/dev_tools/test/harness/prefix_tree_autocomplete/index.html
.