Il 27/12/2014 20:49, Jens Tröger ha scritto:
It's the exact same document in both cases, and the conversion is
auto-piloted using Python and UNO.  In fact, it's the exact same
scenario on both hosts:

   - run LO headless,
   - open Python interpreter and use UNO to connect to LO,
   - iterate over all paragraphs.

Everything (LO, Python, ...) runs local on the host, yet there are these
huge performance differences: 3 sec on Mac, ~3 min on Linux.

Have you tried profiling? BTW if you use 4.3 or newer you may want to give a try to pylokit [1], a python wrapper for LibreOfficeKit.

[1] https://github.com/xrmx/pylokit

thanks,
riccardo

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to