diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-06-25 10:49:03 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-06-25 11:02:15 -0700 |
commit | dc5f112c3ea8aff1a389513fa6c33d88fab07420 (patch) | |
tree | 5e887029c973d8a5b292fd9993c5ad81cf8c4c61 /html/edit/011-errors.mu.html | |
parent | d2f0704962eb0e43f3db8b461dd6d48ee9297f73 (diff) | |
download | mu-dc5f112c3ea8aff1a389513fa6c33d88fab07420.tar.gz |
3958
Improvement on fix 3957: rather than put a band-aid over a slow operation, eliminate the slowdown entirely. In this case it turns out we're unnecessarily saving files to disk when they could never be modified. Are we doing this on F4 as well?!
Diffstat (limited to 'html/edit/011-errors.mu.html')
-rw-r--r-- | html/edit/011-errors.mu.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/html/edit/011-errors.mu.html b/html/edit/011-errors.mu.html index b01219ba..0f726e99 100644 --- a/html/edit/011-errors.mu.html +++ b/html/edit/011-errors.mu.html @@ -72,7 +72,7 @@ if ('onhashchange' in window) { <span id="L9" class="LineNr"> 9 </span> <span class="Constant">local-scope</span> <span id="L10" class="LineNr"> 10 </span> <span class="Constant">load-ingredients</span> <span id="L11" class="LineNr"> 11 </span> recipes:&:editor <span class="Special"><-</span> get *env, <span class="Constant">recipes:offset</span> -<span id="L12" class="LineNr"> 12 </span> in:text <span class="Special"><-</span> <a href='005-sandbox.mu.html#L669'>editor-contents</a> recipes +<span id="L12" class="LineNr"> 12 </span> in:text <span class="Special"><-</span> <a href='005-sandbox.mu.html#L675'>editor-contents</a> recipes <span id="L13" class="LineNr"> 13 </span> <a href='../088file.mu.html#L11'>resources</a> <span class="Special"><-</span> <a href='../088file.mu.html#L127'>dump</a> <a href='../088file.mu.html#L11'>resources</a>, <span class="Constant">[lesson/recipes.mu]</span>, in <span id="L14" class="LineNr"> 14 </span> recipe-errors:text <span class="Special"><-</span> reload in <span id="L15" class="LineNr"> 15 </span> *env <span class="Special"><-</span> put *env, <span class="Constant">recipe-errors:offset</span>, recipe-errors @@ -94,7 +94,7 @@ if ('onhashchange' in window) { <span id="L31" class="LineNr"> 31 </span> <span class="Conceal">¦</span> left:num <span class="Special"><-</span> get *recipes, <span class="Constant">left:offset</span> <span id="L32" class="LineNr"> 32 </span> <span class="Conceal">¦</span> right:num <span class="Special"><-</span> get *recipes, <span class="Constant">right:offset</span> <span id="L33" class="LineNr"> 33 </span> <span class="Conceal">¦</span> row:num <span class="Special"><-</span> get *recipes, <span class="Constant">bottom:offset</span> -<span id="L34" class="LineNr"> 34 </span> <span class="Conceal">¦</span> row, <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> <a href='005-sandbox.mu.html#L393'>render-text</a> <a href='../081print.mu.html#L16'>screen</a>, recipe-errors, left, right, <span class="Constant">1/red</span>, row +<span id="L34" class="LineNr"> 34 </span> <span class="Conceal">¦</span> row, <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> <a href='005-sandbox.mu.html#L399'>render-text</a> <a href='../081print.mu.html#L16'>screen</a>, recipe-errors, left, right, <span class="Constant">1/red</span>, row <span id="L35" class="LineNr"> 35 </span> <span class="Conceal">¦</span> <span class="Comment"># draw dotted line after recipes</span> <span id="L36" class="LineNr"> 36 </span> <span class="Conceal">¦</span> <a href='002-typing.mu.html#L1116'>draw-horizontal</a> <a href='../081print.mu.html#L16'>screen</a>, row, left, right, <span class="Constant">9480/horizontal-dotted</span> <span id="L37" class="LineNr"> 37 </span> <span class="Conceal">¦</span> row <span class="Special"><-</span> add row,<span class="Constant"> 1</span> @@ -170,7 +170,7 @@ if ('onhashchange' in window) { <span id="L107" class="LineNr">107 </span> <span class="Conceal">¦</span> sandbox-errors:text <span class="Special"><-</span> get *sandbox, <span class="Constant">errors:offset</span> <span id="L108" class="LineNr">108 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> sandbox-errors <span id="L109" class="LineNr">109 </span> <span class="Conceal">¦</span> *sandbox <span class="Special"><-</span> put *sandbox, <span class="Constant">response-starting-row-on-screen:offset</span>,<span class="Constant"> 0</span> <span class="Comment"># no response</span> -<span id="L110" class="LineNr">110 </span> <span class="Conceal">¦</span> row, <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> <a href='005-sandbox.mu.html#L393'>render-text</a> <a href='../081print.mu.html#L16'>screen</a>, sandbox-errors, left, right, <span class="Constant">1/red</span>, row +<span id="L110" class="LineNr">110 </span> <span class="Conceal">¦</span> row, <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> <a href='005-sandbox.mu.html#L399'>render-text</a> <a href='../081print.mu.html#L16'>screen</a>, sandbox-errors, left, right, <span class="Constant">1/red</span>, row <span id="L111" class="LineNr">111 </span> <span class="Conceal">¦</span> <span class="Comment"># don't try to print anything more for this sandbox</span> <span id="L112" class="LineNr">112 </span> <span class="Conceal">¦</span> <span class="muControl">jump</span> <span class="Constant">+render-sandbox-end</span> <span id="L113" class="LineNr">113 </span> <span class="Delimiter">}</span> |