Helge Hafting wrote:
Dov Feldstern wrote:
This does have the disadvantage, however, of
painting the characters one at a time, which may be less efficient
(does anyone know if this really makes a significant difference?).
Here is a way in which you can test this:
1. Make a big document with, say, 50 pages of Hebrew/Arabic text only.
2. Test how much time is needed to scroll through it while holding
down the down-arrow key. Compare with an equally long document
full of Roman text only. This test will paint every word on screen.
Perhaps a test with page-down brings out more differences, the
down-arrow test might end up testing video scrolling speed instead.
Make sure all tests are done with the same window size. Maximizing
is one way.
Actually, this does not test what we want to test: comparing
Hebrew/Arabic to roman is not a fair comparison --- even if we were to
let Qt do everything, it may take longer. What we really want to test is
the difference between outputting characters one at a time, versus an
entire word at a time. So take the 50 page document of *roman* text. Now
compare the times, once as normal, and once after inserting a break
statement immediately in the section where the grouping to words takes
place --- that'll make the letters be printed one a time, but everything
else will be the same. That's the real test of the efficiency of
grouping versus painting character at a time.
Dov