summaryrefslogtreecommitdiff
path: root/pt_BR/pythonpath/lightproof_handler_pt_BR.py
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-06-20 20:11:55 +0300
committerTor Lillqvist <tml@collabora.com>2018-06-20 20:51:06 +0200
commit2d8dd0af877de8494ca9c2c027eba4a42bbc09eb (patch)
tree8a3757d2eba5f4b725bedd1b4b652c9a45fe7c48 /pt_BR/pythonpath/lightproof_handler_pt_BR.py
parent6c85a19c887b6147ec7d3a600b51cb2a44284fa2 (diff)
tdf#104332 (and others): Speed up Lightproof initialisation
Delay import of the the heavy lightproof_impl_pt_BR to when actually needed. Shaves several hundred milliseconds (on my machine, about 300 ms) from the time needed to just get a list of what grammars checkers are available. It's silly to load the heavy pt-BR impl module even if no Brazilian Portuguese proof reading is being performed. Sure, the same change could be done to the other Lightproof dictionaries, too, but they are much smaller, so importing them unconditionally always does not hurt so much. Change-Id: I3c3f64e80bd9519f188905abda7c25337c81462d Reviewed-on: https://gerrit.libreoffice.org/56176 Reviewed-by: László Németh <nemeth@numbertext.org> Tested-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'pt_BR/pythonpath/lightproof_handler_pt_BR.py')
-rw-r--r--pt_BR/pythonpath/lightproof_handler_pt_BR.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pt_BR/pythonpath/lightproof_handler_pt_BR.py b/pt_BR/pythonpath/lightproof_handler_pt_BR.py
index 406971a..e80e320 100644
--- a/pt_BR/pythonpath/lightproof_handler_pt_BR.py
+++ b/pt_BR/pythonpath/lightproof_handler_pt_BR.py
@@ -1,7 +1,7 @@
import uno
import unohelper
import lightproof_opts_pt_BR
-from lightproof_impl_pt_BR import pkg
+pkg = "pt_BR"
from com.sun.star.lang import XServiceInfo
from com.sun.star.awt import XContainerWindowEventHandler