https://wiki.secondlife.com/w/index.php?title=LSL_Script_Efficiency/ja&feed=atom&action=history
LSL Script Efficiency/ja - Revision history
2024-03-29T04:48:41Z
Revision history for this page on the wiki
MediaWiki 1.36.1
https://wiki.secondlife.com/w/index.php?title=LSL_Script_Efficiency/ja&diff=75424&oldid=prev
Asuka Neely: /* 効率 */ changed to link translated pages
2008-06-30T17:34:38Z
<p><span dir="auto"><span class="autocomment">効率: </span> changed to link translated pages</span></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 17:34, 30 June 2008</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l118">Line 118:</td>
<td colspan="2" class="diff-lineno">Line 118:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> a++: 0.424600 millis</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> a++: 0.424600 millis</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>[[llOwnerSay]] 対 [[llSay]] 対 [[llShout]] 対 [[llWhisper]] (0チャンネル状態にて)</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>[[<ins style="font-weight: bold; text-decoration: none;">llOwnerSay/ja|</ins>llOwnerSay]] 対 [[<ins style="font-weight: bold; text-decoration: none;">llSay/ja|</ins>llSay]] 対 [[<ins style="font-weight: bold; text-decoration: none;">llShout/ja|</ins>llShout]] 対 [[<ins style="font-weight: bold; text-decoration: none;">llWhisper/ja|</ins>llWhisper]] (0チャンネル状態にて)</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> llOwnerSay(): 4.359000 millis</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> llOwnerSay(): 4.359000 millis</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> llWhisper(): 5.201000 millis</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> llWhisper(): 5.201000 millis</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l124">Line 124:</td>
<td colspan="2" class="diff-lineno">Line 124:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> llShout(): 14.877000 millis</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> llShout(): 14.877000 millis</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>異なるチャンネルにて([[llSay]]()を使用):</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>異なるチャンネルにて([[<ins style="font-weight: bold; text-decoration: none;">llSay/ja|</ins>llSay]]()を使用):</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> -100000000: 1.226400 millis</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> -100000000: 1.226400 millis</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> -100000: 1.254300 millis</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> -100000: 1.254300 millis</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l135">Line 135:</td>
<td colspan="2" class="diff-lineno">Line 135:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> 100000000: 1.228700 millis</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> 100000000: 1.228700 millis</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>文字量の差([[llSay]]()にて1チャンネルを使用):</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>文字量の差([[<ins style="font-weight: bold; text-decoration: none;">llSay/ja|</ins>llSay]]()にて1チャンネルを使用):</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><pre></div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><pre></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> 1 Character: 1.242300 millis</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> 1 Character: 1.242300 millis</div></td></tr>
</table>
Asuka Neely
https://wiki.secondlife.com/w/index.php?title=LSL_Script_Efficiency/ja&diff=75423&oldid=prev
Asuka Neely: /* 効率的デザイン */ changed to link translated pages
2008-06-30T17:32:11Z
<p><span dir="auto"><span class="autocomment">効率的デザイン: </span> changed to link translated pages</span></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 17:32, 30 June 2008</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l29">Line 29:</td>
<td colspan="2" class="diff-lineno">Line 29:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>オブジェクト内の各アイドル状態のスクリプトは Script timeの使用量へ、フレームあたり0.001から0.003ミリ秒追加します。少ないスクリプトファイル数が推奨されます。</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>オブジェクト内の各アイドル状態のスクリプトは Script timeの使用量へ、フレームあたり0.001から0.003ミリ秒追加します。少ないスクリプトファイル数が推奨されます。</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* もしボタンの一覧を持つ必要がある場合、プリム毎にスクリプトをいれてはいけません。 スクリプトの代用に、それぞれのボタンをタッチされた場合に検出する[[llDetectedLinkNumber]]を使用しましょう。</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* もしボタンの一覧を持つ必要がある場合、プリム毎にスクリプトをいれてはいけません。 スクリプトの代用に、それぞれのボタンをタッチされた場合に検出する[[<ins style="font-weight: bold; text-decoration: none;">llDetectedLinkNumber/ja|</ins>llDetectedLinkNumber]]を使用しましょう。</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* もし子プリム群の色や透過率、テクスチャを変える必要がある場合、それぞれのプリムにスクリプトを入れてはいけません。代わりに[[llSetLinkAlpha]]、[[llSetLinkColor]]、[[llSetLinkTexture]]、か[[llSetLinkPrimitiveParams]]を使用しましょう。</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* もし子プリム群の色や透過率、テクスチャを変える必要がある場合、それぞれのプリムにスクリプトを入れてはいけません。代わりに[[<ins style="font-weight: bold; text-decoration: none;">llSetLinkAlpha/ja|</ins>llSetLinkAlpha]]、[[<ins style="font-weight: bold; text-decoration: none;">llSetLinkColor/ja|</ins>llSetLinkColor]]、[[<ins style="font-weight: bold; text-decoration: none;">llSetLinkTexture/ja|</ins>llSetLinkTexture]]、か[[<ins style="font-weight: bold; text-decoration: none;">llSetLinkPrimitiveParams/ja|</ins>llSetLinkPrimitiveParams]]を使用しましょう。</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* 0チャンネルでのlistenを各プリムに入れることは'''ありえません'''。これは効率のために最も悪いことであるのは確かです。全てにおいて不適当なことです。</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* 0チャンネルでのlistenを各プリムに入れることは'''ありえません'''。これは効率のために最も悪いことであるのは確かです。全てにおいて不適当なことです。</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* [[XyText]]の代わりに[[XyzzyText]]を使用しましょう。</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* [[XyText]]の代わりに[[XyzzyText]]を使用しましょう。</div></td></tr>
</table>
Asuka Neely
https://wiki.secondlife.com/w/index.php?title=LSL_Script_Efficiency/ja&diff=46065&oldid=prev
Asuka Neely: Undo revision 46064 by Asuka Neely (Talk)
2007-12-26T01:39:12Z
<p>Undo revision 46064 by <a href="/wiki/Special:Contributions/Asuka_Neely" title="Special:Contributions/Asuka Neely">Asuka Neely</a> (<a href="/wiki/User_talk:Asuka_Neely" title="User talk:Asuka Neely">Talk</a>)</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 01:39, 26 December 2007</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>{{Multi-lang}}{{LSL Header/ja<del style="font-weight: bold; text-decoration: none;">}}{{RightToc</del>}}</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>{{Multi-lang}}</div></td></tr>
<tr><td colspan="2"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"><div style="float:right;">__TOC__</div></ins>{{LSL Header/ja}}</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><div id="box"></div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><div id="box"></div></td></tr>
</table>
Asuka Neely
https://wiki.secondlife.com/w/index.php?title=LSL_Script_Efficiency/ja&diff=46064&oldid=prev
Asuka Neely at 01:37, 26 December 2007
2007-12-26T01:37:59Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 01:37, 26 December 2007</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>{{Multi-lang}}</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>{{Multi-lang}}{{LSL Header/ja<ins style="font-weight: bold; text-decoration: none;">}}{{RightToc</ins>}}</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"><div style="float:right;">__TOC__</div></del>{{LSL Header/ja}}</div></td><td colspan="2"></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><div id="box"></div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><div id="box"></div></td></tr>
</table>
Asuka Neely
https://wiki.secondlife.com/w/index.php?title=LSL_Script_Efficiency/ja&diff=46059&oldid=prev
Utano Schell at 23:53, 25 December 2007
2007-12-25T23:53:08Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 23:53, 25 December 2007</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l41">Line 41:</td>
<td colspan="2" class="diff-lineno">Line 41:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== 細かい最適化 ==</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== 細かい最適化 ==</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>++<del style="font-weight: bold; text-decoration: none;">aの代わりにa</del>++<del style="font-weight: bold; text-decoration: none;">を使うように、スクリプトのスピードアップの方法は数多く存在しますが、これらの多くの細かい最適化は将来においても保障されているわけではありません。</del></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">a</ins>++<ins style="font-weight: bold; text-decoration: none;">の代わりに</ins>++<ins style="font-weight: bold; text-decoration: none;">aを使うように、スクリプトのスピードアップの方法は数多く存在しますが、これらの多くの細かい最適化は将来においても保障されているわけではありません。</ins></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
</table>
Utano Schell
https://wiki.secondlife.com/w/index.php?title=LSL_Script_Efficiency/ja&diff=46057&oldid=prev
Asuka Neely at 23:05, 25 December 2007
2007-12-25T23:05:29Z
<p></p>
<a href="https://wiki.secondlife.com/w/index.php?title=LSL_Script_Efficiency/ja&diff=46057&oldid=46024">Show changes</a>
Asuka Neely
https://wiki.secondlife.com/w/index.php?title=LSL_Script_Efficiency/ja&diff=46024&oldid=prev
Asuka Neely at 11:22, 25 December 2007
2007-12-25T11:22:55Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 11:22, 25 December 2007</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{Multi-lang}}</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{Multi-lang}}</div></td></tr>
<tr><td colspan="2"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">'''現在翻訳作業中です...'''(これは翻訳作業者が、作業中であることを明示するために挿入した一文です。)</ins></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><div style="float:right;">__TOC__</div>{{LSL Header/ja}}</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><div style="float:right;">__TOC__</div>{{LSL Header/ja}}</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
</table>
Asuka Neely
https://wiki.secondlife.com/w/index.php?title=LSL_Script_Efficiency/ja&diff=44562&oldid=prev
Coffee Mills: New page: {{Multi-lang}} <div style="float:right;">__TOC__</div>{{LSL Header/ja}} <div id="box"> == 効率とは == <div style="padding: 0.5em;"> Efficiency is how much resource a particular scrip...
2007-12-12T09:11:51Z
<p>New page: {{Multi-lang}} <div style="float:right;">__TOC__</div>{{LSL Header/ja}} <div id="box"> == 効率とは == <div style="padding: 0.5em;"> Efficiency is how much resource a particular scrip...</p>
<p><b>New page</b></p><div>{{Multi-lang}}<br />
<div style="float:right;">__TOC__</div>{{LSL Header/ja}}<br />
<br />
<div id="box"><br />
== 効率とは ==<br />
<div style="padding: 0.5em;"><br />
<br />
Efficiency is how much resource a particular script uses to accomplish a goal. This often goes hand-in-hand with speed of execution, but not always.<br />
<br />
Things to watch out for, in rough order of importance:<br />
<br />
* Using a lot of scripts to accomplish something. See Efficient Design.<br />
* [[llSleep]] - This function uses up 0.2 to 0.3 ms per frame while the script sleeps, timers are much better.<br />
* Short frequency timers (<5 sec)<br />
* Listen - especially to the 0 channel<br />
* Changing textures often (Others have to download them)<br />
* Inappropriate use of server/physical rotations instead of omega<br />
* Event handlers which are not needed (touch, collision, ...)<br />
* Large amount of email or IM<br />
* Inefficient algorithms (like linear search)<br />
* Busy (polling) loops<br />
<br />
</div></div><br />
<div id="box"><br />
<br />
== 効率的な設計 ==<br />
<div style="padding: 0.5em;"><br />
<br />
Each idle script in an object adds 0.001 to 0.003 milliseconds per frame of script time usage. Less scripts is better.<br />
<br />
* If you need to have a bunch of "buttons", don't put a script in each prim. Use [[llDetectedLinkNumber]] to detect which button was touched from your main script instead. <br />
* If you need to change color, alpha, or texture of child prims, do not put a script in each prim. Instead use [[llSetLinkAlpha]], [[llSetLinkColor]], [[llSetLinkTexture]], or [[llSetLinkPrimitiveParams]].<br />
* '''Never''' put a script in each prim (of a large linkset) that listens on channel 0 (or any other channel). This is probably the worst thing you can do for efficiency. Unfortunately it is all too common.<br />
* Consider using [[XyzzyText]] instead of [[XyText]].<br />
<br />
The bottom line is, if you find yourself tempted to put a script in each prim, stop and think about how you could do it differently with less scripts. There is almost always an alternative. It is up to you to decide whether the alternative is a viable one for your application.<br />
<br />
</div></div><br />
<div id="box"><br />
<br />
== Micro-optimization ==<br />
<br />
There are many ways to speed up scripts, such as using ++a instead of a++, however, most of these micro optimizations might not hold true in the future.<br />
<br />
<br />
== How Fast Does That Code Run ==<br />
<div style="padding: 0.5em;"><br />
<br />
The following code will get the time for each function call in millis.<br />
<br />
Please first propose changes to the [[Talk:LSL_Script_Efficiency|discussion]] tab. Please do not change the code here without discussion, as any small change could reduce the accuracy of measurements. Please note this code and its comments should exactly match the code and comments presented by the [[Efficiency Tester]] page.<br />
<br />
Thanks to {{User|Xaviar Czervik}} for the original code, thanks to {{User|Strife Onizuka}} for tuning the code to produce more accurate measurements, and thanks to the other contributors listed in the history of this article.<br />
<br />
<pre><br />
//IMPORTANT: Only perform tests in an empty region.<br />
// To reduce contamination and be sure to wearing no attachments.<br />
// Preferably do tests in a private sim with one on it.<br />
// Don't move while performing the test.<br />
// There is a margin of error so run the tests multiple times to determine it.<br />
<br />
integer time() { // count milliseconds since the day began<br />
string stamp = llGetTimestamp(); // "YYYY-MM-DDThh:mm:ss.ff..fZ"<br />
return (integer) llGetSubString(stamp, 11, 12) * 3600000 + // hh<br />
(integer) llGetSubString(stamp, 14, 15) * 60000 + // mm<br />
llRound((float)llGetSubString(stamp, 17, -2) * 1000000.0)/1000; // ss.ff..f<br />
}<br />
<br />
default {<br />
state_entry() {<br />
llOwnerSay((string) llGetFreeMemory());<br />
<br />
//test variables<br />
float counter;<br />
<br />
//framework variables<br />
float i = 0;<br />
float j = 0;<br />
float max = 10000; // 2ms of work takes 20 seconds to repeat 10,000 times, plus overhead<br />
<br />
float t0 = time();<br />
do {<br />
<br />
//test<br />
counter += 1;<br />
<br />
}while (++i < max);<br />
float t1 = time();<br />
do ; while (++j < max);<br />
float t2 = time();//remove the time required by the framework<br />
float elapsed = ((t1 - t0) - (t2 - t1))/max;<br />
llOwnerSay("The function in the loop took a total of " + (string)elapsed + " milliseconds.");<br />
}<br />
}<br />
</pre><br />
<br />
</div></div><br />
<div id="box"><br />
<br />
== 効率 ==<br />
<div style="padding: 0.5em;"><br />
<br />
The following data was collected using the above function in a recently deployed empty (though not private) sim, with only that one script running in a HUD attachment. 20 tests of each were run and averaged.<br />
++a: 0.173780 ms std. dev.: 0.003393 ms<br />
a += 1: 0.181720 ms std. dev.: 0.013267 ms<br />
a++: 0.243500 ms std. dev.: 0.013816 ms<br />
Thus a++ takes 40% longer to execute than ++a (rough estimate).<br />
<br />
While the following data is correct, the function above was not used. A slightly less optimized version written by {{User|Xaviar Czervik}} was used. If someone could please repeat the tests with the function above.<br />
<br />
++a: 0.364700 millis<br />
a += 1: 0.346900 millis<br />
a++: 0.413700 millis<br />
<br />
Testing the same function in for loops:<br />
++a: 0.358370 millis<br />
a += 1: 0.351200 millis<br />
a++: 0.424600 millis<br />
<br />
[[llOwnerSay]] v. [[llSay]] v. [[llShout]] v. [[llWhisper]] (Channel 0 where applies):<br />
llOwnerSay(): 4.359000 millis<br />
llWhisper(): 5.201000 millis<br />
llSay(): 5.226000 millis<br />
llShout(): 14.877000 millis<br />
<br />
Different Channels ([[llSay]]() Used for all):<br />
-100000000: 1.226400 millis<br />
-100000: 1.254300 millis<br />
-100: 1.296100 millis<br />
-1: 1.292400 millis<br />
0: 5.226000 millis<br />
1: 1.242300 millis<br />
100: 1.249100 millis<br />
100000: 1.219700 millis<br />
100000000: 1.228700 millis<br />
<br />
Amount of text ([[llSay]]() and Channel 1 used for all):<br />
<pre><br />
1 Character: 1.242300 millis<br />
10 Characters: 1.309700 millis<br />
100 Characters: 1.965600 millis<br />
</pre></div>
Coffee Mills