RE: Processing time is linear, but elapsed time with GUI is not

2016-09-03 Thread Daniel Naber
On 2016-09-02 11:10, Mike Unwalla wrote:

Hi Mike,

> With text that has no errors, and with the same set of rules selected 
> as
> previously, the elapsed time is linear. As best I can measure with a
> stopwatch, it is approximately processor time + 0.2 seconds.

so it's indeed just the JTextPane being slow. Maybe you could add an 
issue for that and ping @pminos about it? There's even an old comment in 
our code about this: "TODO: use a JTable for faster rendering"

Regards
  Daniel


--
___
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel


Re: Processing time is linear, but elapsed time with GUI is not

2016-08-31 Thread Daniel Naber
On 2016-08-31 19:03, Mike Unwalla wrote:

Hi Mike,

> Do you know why the elapsed time is non-linear? What can I do to make
> the elapsed time linear (or as linear as possible)?

this might be caused by the component we use to show the errors, which 
supports HTML for formatting but isn't very fast. Could you confirm that 
the performance only increases linearly if the text gets longer but has 
no errors?

Regards
  Daniel


--
___
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel