[Libreoffice] Proofing API Performance

Tino Didriksen tino.didriksen at gmail.com
Wed Nov 9 03:05:48 PST 2011


I am making spelling/grammar/hyphenation extensions that query a remote
service, and have some performance issues that I hope there are existing
solutions for. In all cases, the extensions must work with "check
spelling/grammar as you type" enabled.

- How can I limit the request rate or make it smarter?
Currently, LO seems to call the API for every word (or even letter) typed,
which is incredibly wasteful as grammar checking only makes sense at
sentence level. I also don't really want the whole paragraph at each call;
just the last finished sentence.

- Why doesn't LO remember the results?
It draws the squigglies, but it then calls the checker again when
right-clicking on an error, even if no changes are made in the interim. I
can cache this in the extension, but it feels like something that should be
handled in LO itself.

In general, it feels like "as you type" incurs 50x more calls than needed.
So if I missed some obvious option toggle or existing solution, I'd love to
know.

-- Tino Didriksen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20111109/937d4683/attachment-0001.htm>


More information about the LibreOffice mailing list