config listener API ...

Tor Lillqvist tml at iki.fi
Thu Oct 8 00:38:16 PDT 2015


Crazy idea time.

I wonder, as the set of configuration parameters from the source tree in a
specific build is fixed, would it be possible to simply generate a large
(C++) struct containing all of them, populate one global such struct
variable on startup (or even at build time with the default values, then
just replacing ones that are modified by user at startup time), and have
those officecfg::* calls simply refer to fields in that struct? Would be
vastly faster than current code, and simpler (at run-time) than Michael's
idea.

Sure, would have the non-ideal effect that any modification to the
officecfg module would require recompilation of any code that calls
officecfg::....

--tml
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20151008/d71e2e0c/attachment.html>


More information about the LibreOffice mailing list