| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This patch caches the screen dpi and non-client metrics in the MCScreenDC class on open, with them being updated whenever a WM_SETTINGCHANGE or WM_DISPLAYCHANGE message is received. This metrics are used frequently, especially when serializing fields, and caching vastly improves the speed of the operations using them. To facilitate the caching and update of the metrics, a new method `updatemetrics()` has been added to MCScreenDC, which is called when opened and during `processdesktopchanged()`.
This patch adds a release note for bug 21305 where stackfile saving on Windows was considerably slower than other platforms.
|
💙 review by @livecodeian ok e8c93ea |
Sorry, something went wrong.
[[ Bugfix 21305 ]] Improve performance of stackfile saving on Windows This patch adds a cache of some critical system metrics which are used when writing field object content to a stackfile. Previously these metrics would be queried directly every time an `MCBlock` was serialized, they are now queried on startup and when a broadcast notification is received which indicates they may have changed. This makes a substantial difference to saving stackfiles which contain lots of text stored in fields. Partially closes https://quality.livecode.com/show_bug.cgi?id=21305
|
😎 test success e8c93ea
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This patch adds a cache of some critical system metrics which are used when writing field object content to a stackfile. Previously these metrics would be queried directly every time an MCBlock was serialized, they are now queried on startup and when a broadcast notification is received which indicates they may have changed. This makes a substantial difference to saving stackfiles which contain lots of text stored in fields.
Partially closes https://quality.livecode.com/show_bug.cgi?id=21305