minor performance tuning;
authorwenzelm
Sun, 06 Nov 2022 19:25:48 +0100
changeset 76473 b45db8030794
parent 76472 9a6459e72868
child 76474 287c3adcdcd6
minor performance tuning;
src/Pure/PIDE/command.scala
--- a/src/Pure/PIDE/command.scala	Sun Nov 06 18:54:32 2022 +0100
+++ b/src/Pure/PIDE/command.scala	Sun Nov 06 19:25:48 2022 +0100
@@ -213,9 +213,9 @@
     exports: Exports = Exports.empty,
     markups: Markups = Markups.empty
   ) {
-    def initialized: Boolean = status.exists(markup => markup.name == Markup.INITIALIZED)
-    def consolidating: Boolean = status.exists(markup => markup.name == Markup.CONSOLIDATING)
-    def consolidated: Boolean = status.exists(markup => markup.name == Markup.CONSOLIDATED)
+    lazy val initialized: Boolean = status.exists(markup => markup.name == Markup.INITIALIZED)
+    lazy val consolidating: Boolean = status.exists(markup => markup.name == Markup.CONSOLIDATING)
+    lazy val consolidated: Boolean = status.exists(markup => markup.name == Markup.CONSOLIDATED)
 
     lazy val maybe_consolidated: Boolean = {
       var touched = false