GNOME Bugzilla – Bug 333407
Extremely slow import of plain text datafile
Last modified: 2006-03-05 02:49:18 UTC
The attached sheet is extremely slow to import. It has 110 columns and 952 rows, but even stripping it down to 10 rows using "head" it takes forever for Gnumeric 1.6.2 to import it. This is true using "fixed width" with column autodiscovery, and field-delimited with "see two adjacent separators as one" checked. It should not take this long, which leads me to think that there is some very inefficient algorithm being employed at some point. Probably a quadratic-in-number-of-columns algo or something.
Created attachment 60662 [details] The file, gzipped The file. It's not huge: $ wc walk.txt 952 103768 1862112 walk.txt
Import is almost instantaneous. But going from the fixed/csv page to the format page takes a close approximation to forever.
Fixed in cvs. Initialization was triggering the format page's setup and it created a treeview with ~1350 columns. GTK+ was spending a long time removing columns from that one by one.
And for good measure, the gtk+ slowness is now bug 333429.