Date: Fri, 11 Mar 2005 00:32:16 +0000 To: lablgtk at math.nagoya-u.ac.jp Subject: Inserting rows into GTree.tree_store is slow Message-ID: <20050311003216.GA31634 at furbychan.cocan.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline From: Richard Jones I have a program which loads a file and inserts around 25,000 rows into a GTree.tree_store model. This process takes about 10 minutes. I had initially blamed the (OCaml-based) loading and parsing code, but now that I come to analyse it, it turns out that the OCaml code is almost instantaneous (no suprise there!) but inserting the rows into the GTree.tree_store is what is taking all the time. I'm wondering if there is a particular reason for this. Is it just that the underlying C model is slow, or could it be the OCaml bindings? Are there good ways to "bulk insert" lots of rows into a tree_store? Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com