proper options;
authorwenzelm
Tue, 21 May 2013 17:55:28 +0200
changeset 52104 250cd2a9308d
parent 52103 fb577a13abbd
child 52105 88b423034d4f
proper options;
src/Pure/System/isabelle_process.ML
src/Pure/Tools/build.ML
src/Pure/goal.ML
--- a/src/Pure/System/isabelle_process.ML	Tue May 21 17:45:53 2013 +0200
+++ b/src/Pure/System/isabelle_process.ML	Tue May 21 17:55:28 2013 +0200
@@ -244,8 +244,6 @@
         then Multithreading.max_threads := 2 else ();
         Goal.skip_proofs := Options.bool options "editor_skip_proofs";
         Goal.parallel_proofs := (if Options.int options "parallel_proofs" > 0 then 3 else 0);
-        Goal.parallel_subproofs_saturation := Options.int options "parallel_subproofs_saturation";
-        Goal.parallel_subproofs_threshold := Options.real options "parallel_subproofs_threshold";
         tracing_messages := Options.int options "editor_tracing_messages"
       end);
 
--- a/src/Pure/Tools/build.ML	Tue May 21 17:45:53 2013 +0200
+++ b/src/Pure/Tools/build.ML	Tue May 21 17:55:28 2013 +0200
@@ -106,10 +106,6 @@
     |> Unsynchronized.setmp print_mode
         (space_explode "," (Options.string options "print_mode") @ print_mode_value ())
     |> Unsynchronized.setmp Goal.parallel_proofs (Options.int options "parallel_proofs")
-    |> Unsynchronized.setmp Goal.parallel_subproofs_saturation
-        (Options.int options "parallel_subproofs_saturation")
-    |> Unsynchronized.setmp Goal.parallel_subproofs_threshold
-        (Options.real options "parallel_subproofs_threshold")
     |> Unsynchronized.setmp Multithreading.trace (Options.int options "threads_trace")
     |> Unsynchronized.setmp Multithreading.max_threads (Options.int options "threads")
     |> Unsynchronized.setmp Future.ML_statistics true
--- a/src/Pure/goal.ML	Tue May 21 17:45:53 2013 +0200
+++ b/src/Pure/goal.ML	Tue May 21 17:55:28 2013 +0200
@@ -8,8 +8,6 @@
 sig
   val skip_proofs: bool Unsynchronized.ref
   val parallel_proofs: int Unsynchronized.ref
-  val parallel_subproofs_saturation: int Unsynchronized.ref
-  val parallel_subproofs_threshold: real Unsynchronized.ref
   val SELECT_GOAL: tactic -> int -> tactic
   val CONJUNCTS: tactic -> int -> tactic
   val PRECISE_CONJUNCTS: int -> tactic -> int -> tactic
@@ -200,8 +198,6 @@
 val skip_proofs = Unsynchronized.ref false;
 
 val parallel_proofs = Unsynchronized.ref 1;
-val parallel_subproofs_saturation = Unsynchronized.ref 100;
-val parallel_subproofs_threshold = Unsynchronized.ref 0.01;
 
 fun future_enabled_level n =
   Multithreading.enabled () andalso ! parallel_proofs >= n andalso
@@ -211,10 +207,12 @@
 
 fun future_enabled_nested n =
   future_enabled_level n andalso
-  forked_count () < ! parallel_subproofs_saturation * Multithreading.max_threads_value ();
+  forked_count () <
+    Options.default_int "parallel_subproofs_saturation" * Multithreading.max_threads_value ();
 
 fun future_enabled_timing t =
-  future_enabled () andalso Time.toReal t >= ! parallel_subproofs_threshold;
+  future_enabled () andalso
+    Time.toReal t >= Options.default_real "parallel_subproofs_threshold";
 
 
 (* future_result *)