The solver components reached every cell through the spreadsheet UNO API: getSheets, then getByIndex for the sheet, then getCellByPosition, each with a QueryInterface. That indirection is cheap once but expensive when it runs for every variable on every evaluation. Now that the solvers live in sc, recover the ScDocument from the document through the UNO tunnel (ScModelObj) in setDocument and read and write cells directly with ScDocument::SetValue and GetValue. Automatic recalculation is turned on there as well, so writing the input cells and then reading the recalculated objective and constraint cells behaves exactly as before. Both the shared SolverComponent base (used by the CoinMP solver) and the standalone SwarmSolver are converted. The results are unchanged because the recalculation engine is the same. Only the cost of getting values in and out of the document drops. The swarm solver evaluates the objective for a whole population every generation, so this is its hot path: on a 100-variable model its evaluation loop runs about four times faster. CoinMP touches the cells only once, in a single pass that reads off the linear coefficients, so it gains less, about 1.7 times faster on the same model. Library_solver now links sc and includes sc/inc. SwarmSolver keeps the UNO cell lookup only for the uncommon case where a constraint's right-hand side is given as a cell address. Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> Change-Id: I03ccec74cdc4d6cde30c86e048bf4314c3ca1397 Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/4047 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.com> (cherry picked from commit 929c17cf8e51a1510c32399de4a94ba946bb9919) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208281 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
Tools and Makefile Fragments Necessary for Compilation
This module contains many tools and makefile configuration pieces, critical for building LibreOffice:
-
bin/-
contains lots of tools used during the build:
-
concat-deps*these aggregate, and remove duplicates from module dependencies, to accelerate build times. -
make_installer.plthis script executes the compiled instructions from thescp2/module to create an installer, and/or to do a local install for the smoketest.
-
-
-
gbuild/implementation of the LibreOffice build system See
gbuild/READMEfor more info. -
gdb/lots of nice python helpers to make debugging -much- easier that (eg.) print UCS2 strings as UTF-8 on the console to help with debugging.
-
inc/old
/increasingly obsolete dmake setup and includes, we are trying to entirely rid ourselves of this -
src/useful standard
/re-usable component map files for components which shouldn't export anything more than a few registration symbols. -
flatpak-external-tarballs.json.inThis file is processed by solenv/bin/generate-flatpak-manifest.sh and the result copied manually to https://github.com/flathub/org.libreoffice.LibreOffice/blob/master/external-tarballs.json The
flatpak/build.shin the LOdev-toolsrepository is obsolete.