Quote:
Originally Posted by gwynevans
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.