
On Sun, 2004-08-08 at 17:22, bulia byak wrote:
I have an 6MB SVG image in my SVG folder and it took over half an hour to show the preview on my P800! It is even slow, if I browse some bigger PNGs. If you worry about not being up to date you can compare the timestamp in the thumbnail with the file date. And no, I don't think that thumbnails are garbage, as long as all programs use the same.
Well, 6Mb is not what I would call typical.
Not typical, but it happens. And woe be unto the user that unknowlingly or accidentally selects such a file...
Actually I've seen much smaller files that, properly constructed, can bring Inkscape to its knees (e.g. the Chinese Checkers SVG that I believe is attached to one of our closed <use>/performance bugs).
This would not be as big an issue if we could load files asynchronously, though memory exhaustion is still an issue.
Actually an incremental loader that could be run asynchronously (from the idle loop) shouldn't prove too hard to implement.
We'd just need to create a stub SPReprDoc, create an SPDocument from that, and leave an idle handler running using libxml's event-based API to read XML tokens and make additions to the SPRepr tree as events arrive until the file is completely read.
What we actually need is a checkbox or an expander triangle to turn the preview on or off.
That makes sense, I think. Default to expanded the first time though.
some space around the image
Which is confusing - I want the preview to match the actual look, without having to guess if this margin an actual part of the file or not
Some padding around the image border looks better IMO, but I think there does need to be a border rectangle so the actual image dimensions/"margins" are apparent.
shows the file size
Which is good, but properly belongs in the file list as a separate sort-able column, not in the preview (by the way, Bob, can we add the filesize column to the list?)
Hmm, I like it in the preview, IMO. Maybe in addition to the file list, but still...
and displays a folder icon, if you are an a folder an not on an image.
It might make sense to borrow that one.
Yes, I think that's somewhat important for consistency.
-mental