From cb276cd8c956beffb28e7729f60efa03b1480a86 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Mon, 18 Dec 2023 13:31:37 +0100 Subject: [PATCH 1/3] linenumbers: throttle relayout events and remove expensive try catch --- CHANGELOG.md | 6 +- .../de.itemis.mps.linenumbers.plugin.mps | 201 +++++++++++------- 2 files changed, 130 insertions(+), 77 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3e19545c..e49248067 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,13 +5,17 @@ All notable changes to this project are documented in this file. Format of the log is _loosely_ based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). The project does _not_ follow Semantic Versioning and the changes are documented in reverse chronological order, grouped by calendar month. -## Dezember 2023 +## December 2023 ### Added - A new language `de.itemis.mps.statistics` was added that adds a new menu `MPS Statistics` to the `Tools` menu. The containing action writes a file `dependencies.txt` to the root folder. It contains all the used dependencies of the current project. - de.slisson.mps.tables: tables now support a new property `column UI actions (experimental)`: This property adds actions to the MPS toolbar to add a new column above/below the current column or to delete the current column. These actions only work for simple tables that are based on rows (default: *false*). +### Fixed + +- The performance of the language `de.itemis.mps.linenumbers` was improved. + ## November 2023 ### Changed diff --git a/code/linenumbers/de.itemis.mps.linenumbers/models/de.itemis.mps.linenumbers.plugin.mps b/code/linenumbers/de.itemis.mps.linenumbers/models/de.itemis.mps.linenumbers.plugin.mps index 7f7065cd2..1aa42c815 100644 --- a/code/linenumbers/de.itemis.mps.linenumbers/models/de.itemis.mps.linenumbers.plugin.mps +++ b/code/linenumbers/de.itemis.mps.linenumbers/models/de.itemis.mps.linenumbers.plugin.mps @@ -224,6 +224,7 @@ + @@ -234,6 +235,7 @@ + @@ -320,13 +322,6 @@ - - - - - - - @@ -2257,6 +2252,14 @@ + + + + + + + + @@ -2651,90 +2654,67 @@ - - - - - - - - + + + + + + + + + - - - - - - - - + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - - - - - - - - - - + + + + + + + + + + @@ -3228,6 +3208,75 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From e10c8beafa58e3e8b07cdaba82b2bc1de038e1be Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Mon, 18 Dec 2023 13:49:58 +0100 Subject: [PATCH 2/3] linenumbers: introduce a variable for the throttle interval --- .../de.itemis.mps.linenumbers.msd | 1 + .../de.itemis.mps.linenumbers.plugin.mps | 42 ++++++++++++++++++- 2 files changed, 41 insertions(+), 2 deletions(-) diff --git a/code/linenumbers/de.itemis.mps.linenumbers/de.itemis.mps.linenumbers.msd b/code/linenumbers/de.itemis.mps.linenumbers/de.itemis.mps.linenumbers.msd index e02b19650..72debd89b 100644 --- a/code/linenumbers/de.itemis.mps.linenumbers/de.itemis.mps.linenumbers.msd +++ b/code/linenumbers/de.itemis.mps.linenumbers/de.itemis.mps.linenumbers.msd @@ -26,6 +26,7 @@ + diff --git a/code/linenumbers/de.itemis.mps.linenumbers/models/de.itemis.mps.linenumbers.plugin.mps b/code/linenumbers/de.itemis.mps.linenumbers/models/de.itemis.mps.linenumbers.plugin.mps index 1aa42c815..5cff1cf63 100644 --- a/code/linenumbers/de.itemis.mps.linenumbers/models/de.itemis.mps.linenumbers.plugin.mps +++ b/code/linenumbers/de.itemis.mps.linenumbers/models/de.itemis.mps.linenumbers.plugin.mps @@ -9,6 +9,7 @@ + @@ -308,6 +309,18 @@ + + + + + + + + + + + + @@ -323,6 +336,9 @@ + + + @@ -2043,6 +2059,28 @@ + + + + + + + + + + + + + + + + + + + + + + @@ -3247,8 +3285,8 @@ - - + + From 0ffb0b8c648e14bf2dda84b650447bad99c696b5 Mon Sep 17 00:00:00 2001 From: Michael Gronover Date: Mon, 18 Dec 2023 14:01:21 +0100 Subject: [PATCH 3/3] Fixed usage of RELAYOUT_THROTTLE_INTERVAL --- .../models/de.itemis.mps.linenumbers.plugin.mps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/linenumbers/de.itemis.mps.linenumbers/models/de.itemis.mps.linenumbers.plugin.mps b/code/linenumbers/de.itemis.mps.linenumbers/models/de.itemis.mps.linenumbers.plugin.mps index 5cff1cf63..f02869a77 100644 --- a/code/linenumbers/de.itemis.mps.linenumbers/models/de.itemis.mps.linenumbers.plugin.mps +++ b/code/linenumbers/de.itemis.mps.linenumbers/models/de.itemis.mps.linenumbers.plugin.mps @@ -3286,7 +3286,7 @@ - +