entry completion for hundreds of thousands of items
yoann padioleau <[email protected]> Fri, 3 Sep 2010 19:41:32 -0700
| Newsgroups | gmane.comp.lang.ocaml.lib.gtk |
|---|---|
| Message-ID | <[email protected]> |
Hi, I want to provide some completion for text where the corpus of items is above 100000. I've tried to build a GTree.list_store with those 100000 items but it takes a too long time to build the model. I've then tried to split those 100 000 iterms in chunk of 1000 based on common prefix. Then as the user start to type a string, I build a model with only the relevant 1000 items. But even building a model with only 1000 items takes more than 2 seconds which makes the whole application look slow. Is there a way to accelerate the insertion of items in a list_store ? I've attached my modification of src/examples/entrycompletion.ml showing how slow it is. _______________________________________________ Lablgtk mailing list [email protected] http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk
entrycompletion.ml
(application/octet-stream, 2.5 KB) - not displayed