discontinued somewhat pointless Par_List.map_name -- most of the time is spent in tokenization;
authorwenzelm
Sun, 21 Aug 2011 14:16:44 +0200
changeset 44353 02f286491568
parent 44352 176e0fb6906b
child 44354 88bf93c2ae7c
child 44359 00af710d857e
child 44363 53f4f8287606
discontinued somewhat pointless Par_List.map_name -- most of the time is spent in tokenization;
src/Pure/Thy/thy_load.ML
--- a/src/Pure/Thy/thy_load.ML	Sun Aug 21 13:42:55 2011 +0200
+++ b/src/Pure/Thy/thy_load.ML	Sun Aug 21 14:16:44 2011 +0200
@@ -175,9 +175,7 @@
     val spans = Source.exhaust (Thy_Syntax.span_source toks);
     val elements =
       Source.exhaust (Thy_Syntax.element_source (Source.of_list spans))
-      |> Par_List.map_name "Outer_Syntax.prepare_element"
-        (Outer_Syntax.prepare_element outer_syntax init)
-      |> flat;
+      |> maps (Outer_Syntax.prepare_element outer_syntax init);
 
     val _ = Present.theory_source name
       (fn () => HTML.html_mode (implode o map Thy_Syntax.present_span) spans);