Thread: sigil 0.2.0
View Single Post
Old 02-24-2010, 07:13 PM   #11
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by gwynevans View Post
It's probably not needed, but I'd throw in a caution against premature optimisation, in that this, at least, doesn't sound to be something that'd happen that often (compared with opening the files, etc). Are you sure you're not spending time fixing things that wouldn't really matter - i.e. if both tabs did re-render would it be so bad, especially if it kept the code simpler?
Oh it's needed. If you open a large HTML file, it takes upwards of 30 seconds to render it. Let's say it's 30 seconds exactly. Now you find the start of the next chapter (say, 3% of the way through) and want to split there: the tab with the 3% size has to render, since it's a new tab. It loads very fast, because it's small. But if I let the original big tab re-render, that's another 29.1 seconds of render time.

And then you move a bit down, and then split again. Another 28.2 seconds... and then again... and then again...

I'd rather not be lynched by Sigil's users.

So that has to change. I made it my mission to make Sigil fast for 0.2.0.

BTW opening files is now very fast.
Valloric is offline   Reply With Quote