-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accelerate loading of plugins by using observer pattern instead of #a…
…llInstancesDo: Also only trigger the update once for adding all plugins. Tbh I did not test whether the update mechanism actually works because in practice every dialog has its own environment.
- Loading branch information
Showing
13 changed files
with
37 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
SquotTrackedObjectMetadata { | ||
#objectClassName : #PackageInfo, | ||
#id : UUID [ 'a13546282d404a8e98ff29387e39c8c8' ], | ||
#objectsReplacedByNames : true, | ||
#serializer : #SquotCypressCodeSerializer | ||
} |
2 changes: 2 additions & 0 deletions
2
packages/SwaLint-Core.package/SLDefaultDialog.class/instance/onEnvironment..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
initialization | ||
onEnvironment: aSLEnvironment | ||
|
||
self removeDependent: environment. | ||
environment := aSLEnvironment. | ||
self addDependent: environment. | ||
self update. |
6 changes: 6 additions & 0 deletions
6
packages/SwaLint-Core.package/SLDefaultDialog.class/instance/update..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
updating | ||
update: aspect | ||
|
||
aspect == self environment ifTrue: | ||
[self update]. | ||
^ super update: aspect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
packages/SwaLint-Core.package/SLEnvironment.class/instance/basicAddPlugIn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
private | ||
basicAddPlugIn: aSLPlugInClass | ||
|
||
aSLPlugInClass subclasses | ||
do: [ :subclass | self basicAddPlugIn: subclass] | ||
displayingProgress: ('Loading ', aSLPlugInClass). | ||
aSLPlugInClass offeredTests | ||
do: [ :test | self addTest: test] | ||
displayingProgress: [ :test | 'Loading Test: ', test name]. |
6 changes: 6 additions & 0 deletions
6
packages/SwaLint-Core.package/SLEnvironment.class/instance/basicRemovePlugIn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
private | ||
basicRemovePlugIn: aSLPlugInClass | ||
|
||
aSLPlugInClass subclassesDo: [:subclass | self basicRemovePlugIn: subclass]. | ||
aSLPlugInClass offeredTests do: [ :each | | ||
self removeTest: each]. |
6 changes: 2 additions & 4 deletions
6
packages/SwaLint-Core.package/SLEnvironment.class/instance/removePlugIn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
updating | ||
removePlugIn: aSLPlugInClass | ||
|
||
aSLPlugInClass subclassesDo: [:subclass | self removePlugIn: subclass]. | ||
aSLPlugInClass offeredTests do: [ :each | | ||
self removeTest: each]. | ||
SwaLint refreshAllDialogs. | ||
self basicRemovePlugIn: aSLPlugInClass. | ||
self changed: #plugIns. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 0 additions & 6 deletions
6
packages/SwaLint-Core.package/SwaLint.class/class/refreshAllDialogs.st
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f360e73
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Especially for larger images, this makes a difference of >=300% for the initial loading time of the test suite window.