Issue #158: Fixed call of `#addFirst:` on an instance of `Array` jv
authorJan Vrany <jan.vrany@fit.cvut.cz>
Mon, 11 Sep 2017 14:52:26 +0200
branchjv
changeset 17697 dc99c6992dc3
parent 17619 edb119820fcb
child 17712 7ac1ffddb6cf
Issue #158: Fixed call of `#addFirst:` on an instance of `Array` ...which is indeed very slow as `Array` is fixed size (so growing it requires `#become`) https://swing.fit.cvut.cz/projects/stx-jv/ticket/158
AbstractSettingsApplication.st
--- a/AbstractSettingsApplication.st	Wed Jul 19 09:42:32 2017 +0200
+++ b/AbstractSettingsApplication.st	Mon Sep 11 14:52:26 2017 +0200
@@ -6770,7 +6770,7 @@
     mappings := screenMap copy.
 
     rawKeys := (mappings mappedKeys collect:[:key | key asString] as:Array) sort.
-    logicalKeys := (rawKeys collect:[:rawKey | (mappings mappingFor: rawKey asSymbol) asString] as:Set) asArray sort.
+    logicalKeys := (rawKeys collect:[:rawKey | (mappings mappingFor: rawKey asSymbol) asString] as:Set) asOrderedCollection sort.
     logicalKeys addFirst:(resources string:'* unassigned *').
 
 
@@ -6779,7 +6779,7 @@
 
     self changeMapHolder value:false.
 
-    "Modified: / 24-05-2017 / 21:43:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 11-09-2017 / 14:47:48 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 basicSaveSettings