<!DOCTYPE html>
<html>
<head>
</head>
<body>
<dl style="line-height: 1.5; margin-left: 2em">
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
<dd style="margin-left: 8.5em">Kouhei Sutou <kou****@clear*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2012-08-11 18:50:42 +0900 (Sat, 11 Aug 2012)</dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
<dd style="margin-left: 8.5em"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d">8341b80341c0e972bdf7b8f29b6907466d3b556d</a></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Log</dt>
<dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em">inplace reporter: reduce the number of redraws</pre></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
<dd style="margin-left: 8.5em">
<ul>
<li><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#diff-0">lib/groonga/tester.rb</a></li>
</ul>
</dd>
</dl>
<div class="diff-section" style="clear: both">
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: lib/groonga/tester.rb (+6 -0)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0L1590">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0L1591">1591</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0L1592">1592</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0L1593">1593</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0L1594">1594</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0L1595">1595</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0L1596">1596</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0L1708">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0L1709">1709</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0L1710">1710</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0L1711">1711</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0L1712">1712</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0L1713">1713</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0L1714">1714</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0L1715">1715</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0L1716">1716</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0L1717">1717</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0L1718">1718</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0L1719">1719</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0L1720">1720</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1590">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1591">1591</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1592">1592</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1593">1593</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1594">1594</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1595">1595</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1596">1596</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1597">1597</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1598">1598</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1710">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1711">1711</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1712">1712</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1713">1713</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1714">1714</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1715">1715</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1716">1716</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1717">1717</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1718">1718</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1719">1719</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1720">1720</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1721">1721</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1722">1722</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1723">1723</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1724">1724</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1725">1725</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/grntest/commit/8341b80341c0e972bdf7b8f29b6907466d3b556d#L0R1726">1726</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -1591,6 +1591,8 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">EOF</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> def initialize(tester)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> super</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> @mutex = Mutex.new</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ @last_redraw_time = Time.now</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ @minimum_redraw_interval = 0.1</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> def start(result)</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -1709,12 +1711,16 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">EOF</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> def redraw</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> @mutex.synchronize do</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ unless block_given?</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ return if Time.now - @last_redraw_time < @minimum_redraw_interval</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ end</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> draw</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if block_given?</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> yield</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> else</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> up_n_lines(n_using_lines)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ @last_redraw_time = Time.now</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>