<!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">2013-06-19 14:50:12 +0900 (Wed, 19 Jun 2013)</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/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9">dc52bd740002939a6a989381912f47d43cfe5cc9</a></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Message</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; width: auto">Update res after operation only when it is optimized case
Normally, res is updated before operation.</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/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#diff-0">lib/expr.c</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; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: lib/expr.c (+6 -1)</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; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0L2211">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0L2212">2212</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0L2213">2213</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0L2214">2214</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/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0L2215">2215</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0L2216">2216</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0L2217">2217</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0L2221">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0L2222">2222</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0L2223">2223</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0L2224">2224</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0L2225">2225</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/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0L2226">2226</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0L2227">2227</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0L2228">2228</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; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0R2211">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0R2212">2212</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0R2213">2213</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0R2214">2214</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/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0R2215">2215</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/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0R2216">2216</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/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0R2217">2217</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0R2218">2218</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0R2219">2219</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0R2220">2220</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0R2224">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0R2225">2225</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0R2226">2226</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0R2227">2227</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0R2228">2228</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/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0R2229">2229</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/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0R2230">2230</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0R2231">2231</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0R2232">2232</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/dc52bd740002939a6a989381912f47d43cfe5cc9#L0R2233">2233</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; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -2212,6 +2212,9 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">grn_proc_call(grn_ctx *ctx, grn_obj *proc, int nargs, grn_obj *caller)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_obj *x, *y; \</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> \</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> POP2ALLOC1(x, y, res); \</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ if (y != res) { \</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ res->header.domain = x->header.domain; \</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ } \</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> ARITHMETIC_OPERATION_DISPATCH(x, y, res, \</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> integer8_operation, \</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> integer16_operation, \</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -2222,7 +2225,9 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">grn_proc_call(grn_ctx *ctx, grn_obj *proc, int nargs, grn_obj *caller)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> right_expression_check, \</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> text_operation, \</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> invalid_type_error); \</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- res->header.domain = x->header.domain; \</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ if (y == res) { \</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ res->header.domain = x->header.domain; \</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ } \</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> } while (0)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #define ARITHMETIC_UNARY_OPERATION_DISPATCH(integer_operation, \</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>