New branch 'private/jmux/master-fixes_7' available with the following commits: commit a308b0f157509d06a56a91d11378ee0ce1ead059 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Wed Sep 14 18:17:18 2016 +0200
Don't poll busy documents via idle task Creates a very busy idle-loop, for non-task work like mail merge. Change-Id: If7be82e4675008f23e6f4f6be5c40df40a231a8b commit cec52e7c071b45d452bb5e0a29d102f1b30f8924 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Wed Sep 14 15:33:54 2016 +0200 Really schedule Idle tasks immediatly There is really no reason to wait a millisecond for an idle. Change-Id: I7665d5f2e7d6ba3e01290a692bbc8e42c36b9986 commit 538748ffa8c99ca3d41a98d24e2a27de0f998143 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Wed Sep 14 13:48:02 2016 +0200 Change Idle to be a actually a Timer subclass Drops a lot of duplicated code and actually reflects the Scheduler handling of "idle" in the source code. Change-Id: I847592e92e86d15ab1cab168bf0e667322e48048 commit 90736abcb6dc16d172c70f4710cf50267571669c Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Mon Sep 12 18:24:14 2016 +0200 Handle all main loop and task events Change-Id: I75ed5a38b0e24966dafcfdd2ea4cb8afc93a8a0c commit 3ff040114fa985bc5c0c6b2c7c8d966137930e12 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Wed Aug 10 12:00:53 2016 +0200 Reorganize Scheduler priority classes This is based on glibs classification of tasks, but while glib uses an int for more fine grained priority, we stay with our enum. 1. Timers start with DEFAULT priority, which directly corresponds with the previous HIGH priority 2. Idles start with DEFAULT_IDLE priority instead of the previous HIGH priority, so idle default becomes "really run when idle". As RESIZE and REPAINT are special, and the DEFAULTS are set, there is just one primary decision for the programmer: should my idle run before paint (AKA HIGH_IDLE)? If we really need a more fine-grained classification, we can add it later, or also switch to a real int. As a result, this drops many classifications from the code and drastically changes behaviour, AKA a mail merge from KDE is now as fast as Gtk+ again. Conflicts: cui/source/tabpages/macroass.cxx desktop/source/deployment/gui/dp_gui_dialog2.cxx include/vcl/scheduler.hxx sc/source/core/tool/dbdata.cxx sc/source/ui/formdlg/dwfunctr.cxx sc/source/ui/miscdlgs/anyrefdg.cxx sd/source/ui/dlg/dlgass.cxx sd/source/ui/slideshow/slideshowimpl.cxx svx/source/inc/eventhandler.hxx svx/source/sdr/overlay/overlaymanagerbuffered.cxx sw/source/uibase/docvw/srcedtw.cxx sw/source/uibase/utlui/unotools.cxx vcl/source/app/idle.cxx vcl/source/app/scheduler.cxx vcl/source/app/timer.cxx Change-Id: I498a73fd02d5fb6f5d7e9f742f3bce972de9b1f9 commit f1b7fee442f49c00bb5f8c964a784bb70c6a4179 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Tue Sep 13 12:20:45 2016 +0200 Don't wait in Yield with pending events This re-introduces some functionality of commit 87199d3829257420429057336283c55be6ae7481 I'm not sure, if we really want to skip the wait on pendig events. Change-Id: Ie88c2945acb066e312bab7d0f5b2f3b525fa1c4c commit 4f8007b315283902df596a5186ff70132b652cd1 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Sun Jul 31 17:31:07 2016 +0200 Just schedule tasks, if timeout has ellapsed As the native main loop wakes up on new events and not just by timer timeouts, make sure there is really an ellapsed event. Probably we should just schedule events via the system timeout. At least this will prevent expensive re-scheduling. Conflicts: vcl/source/app/scheduler.cxx Change-Id: I248c9b8acb7df026295d10f256871b9fc8d39c07 commit f7d671c7eea7d155f669195f26c7ee3c75642a1a Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Mon Sep 12 17:03:29 2016 +0200 Drop special idle handling Idles are just instant, mainly low-priority timers. So we'll just schedule by priority. Change-Id: I446eaea0077f45a5b7daa0aa06dcb80010ac0bd5 commit 05a01453fce18dea541d4f1d5f06c5829c76b4de Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Thu Sep 8 06:55:30 2016 +0200 Revert all SalYieldResult changes => bool All we want to know is, if any event was processed. Actually the result was never indicating, if a timeout was processed at all. Change-Id: Ia0b91b06dffb77af066f01838d8f9483523bf67d commit 518fabe383f6d8adf5e3d495ae52232b940cc758 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Sun Jul 31 16:35:49 2016 +0200 Don't update document stats for non-idle views This functionality should be merged into the DocumentTimerManager, which itself should run the different document idle tasks via seperate jobs instead of a single idle, if they don't depend on each other. As a workaround, this checks for the idle status of the view and won't run on busy documents. The idle is also changed to a timer, which sleeps for busy views. Change-Id: I185137ed3423ecaae0f7edb39018d26c4244d359 commit f87ddcd1b956ca193714b029a1bd6dedbb3d9852 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Sat Jul 30 20:56:01 2016 +0200 Reuse scheduled task data Since scheduling is now done via existing ImplSchedulerData objects, keep used objects around to save new and delete calls. Change-Id: Id983f114438d2d8d05de698c7d068af360222d35 commit ff90eb7708ed7b70c5c54bb1df593ce2ab16f4b7 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Tue Sep 6 11:28:44 2016 +0200 Just walk the task list once per timeout This merges ImplSchedulerData::GetMostImportantTask into Scheduler::ProcessTaskScheduling and InitSystemTimer into Scheduler::ImplStartTimer. Walking can be optimized by sorting the list by the next expected scheduling time, when the special idle handling is dropped. Additionally one could implement per-priority queues to speed-up the walk even more. This basically reverts the following commits: commit 10a451e97992ce42db3cefa3bffb883f310767c9 commit 87199d3829257420429057336283c55be6ae7481 commit 1bd5e8b73d863cad6e42ea9619fc471a0dd8d14b commit 5bac7853a89b9b34d64334d6d77582c7cd79b4ee commit d3cdd7efca82130c2c42e3062b5ab244461ce15c Change-Id: Idfb698a6075e371bae7fa36d73ae88a2075cde01 commit ee77f75dce3b9f9fcbe71e47d6772918c5aac388 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Tue Sep 6 10:44:05 2016 +0200 Convert bTimer => bIdle All other places already refer to being Idle, so change the Scheduler::ProcessTaskScheduling argument to bIdle and adapt all other scheduler-related functions. Change-Id: If5a605abbc3e620092127b65ada29f11215a0343 commit f9813933fb36b96e7206c68b584dcc1deba5dd71 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Tue Sep 6 08:27:08 2016 +0000 Always schedule with the same time No need to always update the time - scheduling should be fast! Change-Id: Ic4c01f5a5759ef4970f1385aab6ef93cd67f33b6 commit 4839ff8e0e37d4b603ca874658437c4f8d500838 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Sat Jul 30 19:18:00 2016 +0200 Use mpSchedulerData for delete and active handling We define an active task to have a Scheduler::mpSchedulerData pointer. And if the ImplSchedulerData::mpScheduler pointer is empty, we can delete the task when scheduling. This simplifies the scheduling handling. Change-Id: I7aaddea7f5171b66b7fa309363fc546f97dcb981 commit fbb380b6b18aa6426742d2ee67fdc1511c72821e Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Wed Jul 20 10:54:30 2016 +0200 tdf#97087 GDB pretty print the Scheduler task list In addition to the GDB pretty printer, this annotates a lot more Timers and Idles. Change-Id: I5b93fab02161b23bb753e65ef92643a04fb0789c commit 54510feabef7fe28f00cbcb5466ae469985826e4 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Wed Jul 20 10:45:52 2016 +0200 Update Python six to version 1.10.0 Change-Id: If3d6c7c18ffc19da2a4ccc118aa2a2e658f4a719 commit fa2b812c43a330034abfecd4388f0223dcf815a6 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Mon Sep 5 15:37:36 2016 +0200 MM: don't crash on canceled SHELL documents We show canceled documents, as long as there wasn't an error. Change-Id: I821f89bc9355df5b2223876ad52fee2a717e670a commit 3d6ae9859e8c5fa0ccf2aa4ea11b3f1b423aebdb Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Fri Dec 11 21:48:59 2015 +0100 Clarify KDE4 and TDE config variables The configure flag is already --enable-kde4, so rename most build and configure variables, including the config headers, and the build module to include the major number. Also rename the TDE MOC stored as $MOC to $TDE_MOC to prevent conflicts. Change-Id: Ib947ae4b80349cc52eac7812cb93e8a42606b526 commit 23c1bfb0acdb344c4db621400504990afc723332 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Wed Oct 29 15:54:29 2014 +0100 KDE4: Switch default image color to transparent... and just fill the painted image once at the beginning. Also adapt background based on the control information from Qt4. Change-Id: I39c03b2ca779381920e2597b4bea7973fea6ae2a commit f90cf20694bb68ccf3e9a7d075cf6a6ad4fb6b51 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Tue Aug 30 13:42:20 2016 +0200 tdf#94987 Create directories for temp filenames Per default a temporary file is construted from a path and a leading pattern for the filename. For mail merge the filename can be read from a database column. If the path is not existing, a temporary directory is created. Normally the temp file function would fail, if the filename contains a slash and the sub-directory of the filename doesn't exists as a subdirectory of path. To implement tdf#94987, this adds an option to the temp file class to create the parent directories of the filename pattern. Change-Id: I02bf34294dac85598ee153d8cfcf00bc5d7775af commit 6cf6bbe0419cd955e660116e37c4868b7829993d Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Thu Sep 1 20:37:51 2016 +0200 MM: account next record fields for progress When calculating the maximum document count, we were not accounting "next record" fields in the document, like in labels etc. Also any selection of records was ignored. Change-Id: I703d2186d44d2e5426c4af0d4b2d89e0fe820039 commit ee8e11bf4dae7f2edfc103ee64de85c45da8e5ce Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Thu Sep 1 20:35:51 2016 +0200 MM: just increment after a successful next record This correctly counts the record id from 1, while correctly using 0 for the first item in the selection array. Change-Id: I363eab048cb041bf46454ef685baab1eb3b2138a commit 49ef6a53508610518c1092f04d07d14a90915d80 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Thu Sep 1 12:21:08 2016 +0200 Revert "vcl: Stop-gap solution to start the gen... ... / kde / kde4 plugins again." The patch was just hiding the real bug, which is now fixed in all the X11 based VCL plugins, and introducing others. This reverts commit 37800290245fd0462295a8bbaabd9d761929fa65. Conflicts: vcl/unx/generic/app/saldisp.cxx Change-Id: I95bea07e29293aaab178e30b5fb3cfe089d2d28f commit ca831fa70c7aae499df9d98b1d2d80987918310e Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Thu Sep 1 12:17:44 2016 +0200 tdf#101822 KDE4+TDE SalDisplay init > AfterAppInit Otherwise the configmgr service won't be available in SalDisplay::BestVisual. Change-Id: Iae65b47612df7f65bb7434cef5ec58a6a1b393c5 commit 3d758de331b8282adae075cabcba3a790b52fab8 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Thu Sep 1 14:32:01 2016 +0200 tdf#101822 X11 SalDisplay init => AfterAppInit This fixes the "gen" VCL plugin and adds infrastructure to convert the other SalX11 based plugins, KDE4 and TDE. Basically moves input method and display into SalXLib, so they are available in AfterAppInit. Otherwise the configmgr service won't be available in SalDisplay::BestVisual. Change-Id: I9380075b9770bceb8f453bbcb7fe31291634ff89 commit af0ea2bb3eddf1a97c548535d70a29a8e6ea5ec3 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Thu Sep 1 12:15:44 2016 +0200 tdf#101822 Always de-zombie the glxtest process Make sure we wait for the glxtest process. Change-Id: I143290b80ba83e35f8d0f95d133c25178c5fe563 commit 0b2a4281eb46392aa501ca371cafd76b9381e0f6 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Thu Sep 1 11:33:27 2016 +0200 Cleanup glxtest process start Zero is a valid pipe fd, so use the -1 error code. The comment is simply wrong and since this drops the unused return value, it is also dropped. Change-Id: I0336da3c0a53a75cb7b6d14be913c999d916d5cd commit b53d8471f7c8a2d44657c9c9832e87fb4bb1eb3d Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Mon Sep 12 11:54:51 2016 +0200 Fix Ubuntu '--as-needed' build Change-Id: I92378dae4a515a587c897fff83b15d8e836b0aa2 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits