Wednesday, July 25, 2007, 4:06:22 PM, Hussein Shafie wrote:

> Daniel Dekany wrote:
>> If I edit a not small document (1M DocBook) and the on-the-fly spell
>> checker is on, it causes annoying slowdown (CPU: AMD XP 1600+) when I
>> press arrow-down to scroll. It will continue scrolling after releasing
>> the the key (like for 1 seconds for a typical scrolling, but more if I
>> wanted to scroll more) because it can't keep up with the repletion
>> rate of the keyboard. Without on-the-fly spell checker no such
>> annoying slowdown is perceivable. Now, you may say my CPU is old, etc,
>> but let me do two notes:
>> 
>> - It appears to me that the rate of this slowdown depends on the size
>>   of the document. Like with a 74K DocBook (which is still several
>>   "pages") I don't perceive any slowdown. Is it really necessary that
>>   this continually perceivable resource consumption of a spell checking
>>   grows as the document grows (after it has reached a certain size, of
>>   course)? I don't see any such theoretical necessity.
>> 
>> - I have edited documents of similar size with MS Word on much slower
>>   computers, and while the spellchecker may be delaying sometimes
>>   (especially right after opening the doc), it didn't slowed navigation
>>   down. It was like running in parallel with everything else.
>> 
>> So, maybe some architectural redesign could fix these.
>>   
>
>> And the same problem occurs even if I just move left or right with the
>> caret inside the *same* line. If the on-the-fly spell checking is off,
>> moving the caret continually within the same line causes like 5% CPU
>> usage (with rare spikes of 30%). But if I turn on-the-fly spell
>> checking on, moving the cursor on the same way will *continually* eat
>> 100% CPU time, i.e. the CPU can't keep pace, so the caret movement
>> will be slower and it will continue movement after releasing the arrow
>> key. Quite inconvenient, but most importantly, quite strange; why is
>> it so CPU intensive to move the cursor? I don't even modify the line
>> or cause new lines to show, so what is it working on so hard? Must be
>> a bug.
>
> The above bug is fixed. Bug fix available in next release.

Great! When will it be released?

> This bug fix has also improved the scrolling performance of XXE when you
> keep the Down Arrow pressed. However, XXE is still slower when
> on-the-fly spell checking is turned on than it is when this facility is
> turned off.

The question is if how much slower. I mean, I hope the gradual spell
checker slowdown with the growing document size can be removed in the
future (because I don't see why that slowdown is theoretically
necessarily). With a 100K document it is fast *enough*, so, if it just
stops further substantial slowdown with that document size... (Really,
the spell checker is a separately sold product of yours, so I would
think it would be good to demonstrate for the potential customers that
it can be integrated in a way so that it has no practically
perceivable performance impact. OK, not my business, but still.)

> (I've done all my tests using a 2.2Mb DocBook document opened in XXE
> running on a P4 1.7GHz, 768Mb, no graphics card, Windows XP SP2, Java
> 1.4.2.)

-- 
Best regards,
 Daniel Dekany


Reply via email to