I accidentally opened the Linux file:///usr/share/mime-info/gnome-vfs.keys with Firefox 1.5. Opening this file put Firefox in a loop for over ten minutes.
I suspect the loop is caused by trying to measure the length of 50K lines of Unicode text in order to compute the width of the display. You need the line width to set the horizontal scrollbar correctly. An observation can be made that setting the horizontal scrollbar range accurately is not a really high priority item compared to having the browser UI continue to function. I see that there is on-going work being done to the increment layout algorithms. Does it make sense to lazy evaluate the true horizontal width of the document? For example only compute the width when various parts of the document first get displayed on the screen. Of course if you hit a layout element that requires knowledge of the true width you would be forced to compute the width for the whole document. But the layout of lines of plain text does not require knowledge of the width. As comparison vi can open this file and jump to the last line (displaying a line count) in under one second. All unicode fonts are properly rendered (using Gnome Terminal). Even if the width can't be lazy evaluated, it would be nice to do layout on a lower priority thread that would leave the UI responsive to requests to abort the layout. -- Jon Smirl [EMAIL PROTECTED] _______________________________________________ mozilla-layout mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-layout
