load_thy: parallel parsing of units, which consist of statement/proof each;
authorwenzelm
Thu, 22 Jul 2010 16:43:21 +0200
changeset 37907 f18c4bc8b028
parent 37906 4195727a1f6c
child 37933 b8ca89c45086
load_thy: parallel parsing of units, which consist of statement/proof each;
src/Pure/Isar/outer_syntax.ML
--- a/src/Pure/Isar/outer_syntax.ML	Thu Jul 22 14:59:27 2010 +0200
+++ b/src/Pure/Isar/outer_syntax.ML	Thu Jul 22 16:43:21 2010 +0200
@@ -279,7 +279,7 @@
     val spans = Source.exhaust (Thy_Syntax.span_source toks);
     val _ = List.app Thy_Syntax.report_span spans;
     val units = Source.exhaust (Thy_Syntax.unit_source (Source.of_list spans))
-      |> maps (prepare_unit commands);
+      |> Par_List.map (prepare_unit commands) |> flat;
 
     val _ = Present.theory_source name
       (fn () => HTML.html_mode (implode o map Thy_Syntax.present_span) spans);