<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: A_LoopFileLongPath тормозит]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=10969</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10969&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: A_LoopFileLongPath тормозит».]]></description>
		<lastBuildDate>Tue, 22 Sep 2015 07:37:24 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: A_LoopFileLongPath тормозит]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97641#p97641</link>
			<description><![CDATA[<p>Lexikos ответил, что так и задумано не сохранять ее в память.<br />Что A_LoopFileLongPath&nbsp; это GetFullPathName(A_LoopFileFullPath) и что при вызове ее каждый раз посылается запрос. <br /><a href="https://msdn.microsoft.com/en-us/library/aa364963">https://msdn.microsoft.com/en-us/library/aa364963</a></p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Tue, 22 Sep 2015 07:37:24 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97641#p97641</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: A_LoopFileLongPath тормозит]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97640#p97640</link>
			<description><![CDATA[<p>Спросил на офф.форуме.<br />По-моему логично было бы сохранять A_LoopFileLongPath в память.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Tue, 22 Sep 2015 06:59:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97640#p97640</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: A_LoopFileLongPath тормозит]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97639#p97639</link>
			<description><![CDATA[<p>Первый раз&nbsp; 4-5 сек.<br />Второй 0. Скорей всего просто в памяти сохраняется.</p>]]></description>
			<author><![CDATA[null@example.com (yalanne)]]></author>
			<pubDate>Tue, 22 Sep 2015 06:53:07 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97639#p97639</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: A_LoopFileLongPath тормозит]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97638#p97638</link>
			<description><![CDATA[<p>Запустите следующий код.<br />У меня в первом случае выскакивает от 1000 до 2000, во втором стабильно 0.<br />Происходит непонятная утечка в A_LoopFileLongPath.<br /></p><div class="codebox"><pre><code>Start := A_TickCount
Loop, Files, C:\*.exe, R
{
   loop 10000
      a := A_LoopFileLongPath
   break
}
msgbox % A_TickCount - Start

Start := A_TickCount
Loop, Files, C:\*.exe, R
{
   loop 10000
      a := A_LoopFileFullPath
   break
}
msgbox % A_TickCount - Start</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Tue, 22 Sep 2015 06:49:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97638#p97638</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: A_LoopFileLongPath тормозит]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97637#p97637</link>
			<description><![CDATA[<p>Чем больше древо папок тем дольше загрузка получается.<br />Но на второй раз проверки практически мгновенно выводит.</p>]]></description>
			<author><![CDATA[null@example.com (yalanne)]]></author>
			<pubDate>Tue, 22 Sep 2015 06:42:16 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97637#p97637</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: A_LoopFileLongPath тормозит]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97636#p97636</link>
			<description><![CDATA[<p>У вас мой первый пример работает без тормозов?<br />Цель топика только одна - это баг или не баг.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Tue, 22 Sep 2015 06:21:43 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97636#p97636</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: A_LoopFileLongPath тормозит]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97635#p97635</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>Если заменить A_LoopFileLongPath на A_LoopFileFullPath, то результаты идентичны.</p></blockquote></div><p>Если указывать не точный адрес, то есть вот так:<br /></p><div class="codebox"><pre><code>Loop, Files, *.mp3,R,
{}Until (A_Index=1) and (a:= A_LoopFileLongPath) true and (b:=A_LoopFileFullPath) true

msgbox % a &quot;`n&quot; b</code></pre></div><p>Различия есть, в одном полный путь, в другом относительный от места старта.</p>]]></description>
			<author><![CDATA[null@example.com (yalanne)]]></author>
			<pubDate>Tue, 22 Sep 2015 06:16:51 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97635#p97635</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: A_LoopFileLongPath тормозит]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97634#p97634</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>Malcev, А зачем один и тот же результат присваивать 1000 раз в одну переменную?</p></blockquote></div><p>Для теста.<br /></p><div class="quotebox"><blockquote><p>Если надо что бы просто первый результат брался и стоп цикл то вот компактный вариант:</p></blockquote></div><p>Тормоза возникают только при использовании рекурсии и A_LoopFileLongPath.<br />A_LoopFileFullPath - работает в порядке.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Tue, 22 Sep 2015 06:12:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97634#p97634</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: A_LoopFileLongPath тормозит]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97633#p97633</link>
			<description><![CDATA[<p><strong>Malcev</strong>, А зачем один и тот же результат присваивать 1000 раз в одну переменную?<br /></p><div class="quotebox"><blockquote><p>Что-то они напортачили с рекурсией.</p></blockquote></div><p>А что с ней не так? У меня если нет файлов в основной папке при опции R, ответ просто 0. А в этой папке еще папка с файлами, при R показывает их путь.<br />Да и лагов вроде как нет.<br />Если надо что бы просто первый результат брался и стоп цикл то вот компактный вариант:<br /></p><div class="codebox"><pre><code>Loop, Files, E:\*.mp3,R,
{}Until (A_Index=1) and (a:= A_LoopFileFullPath) true

msgbox % a </code></pre></div>]]></description>
			<author><![CDATA[null@example.com (yalanne)]]></author>
			<pubDate>Tue, 22 Sep 2015 06:00:48 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97633#p97633</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: A_LoopFileLongPath тормозит]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97631#p97631</link>
			<description><![CDATA[<p><a href="http://ahkscript.org/docs/commands/LoopFile.htm">http://ahkscript.org/docs/commands/LoopFile.htm</a><br />&quot;Loop, Files, I:\*.mts, R&quot; = &quot;Loop, I:\*.mts, ,1&quot;<br />Что-то они напортачили с рекурсией.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Tue, 22 Sep 2015 05:32:20 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97631#p97631</guid>
		</item>
		<item>
			<title><![CDATA[AHK: A_LoopFileLongPath тормозит]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=97629#p97629</link>
			<description><![CDATA[<p>Имеем 2 кода. Это баг или что?<br />Если заменить A_LoopFileLongPath на A_LoopFileFullPath, то результаты идентичны.<br /></p><div class="codebox"><pre><code>Start := A_TickCount
Loop, Files, I:\*.mts, R
{
   loop 1000
      a := A_LoopFileLongPath
   break
}
msgbox % A_TickCount - Start

Start := A_TickCount
Loop, Files, I:\*.mts, R
{
   b := A_LoopFileLongPath
   loop 1000   
      a := b
   break
}
msgbox % A_TickCount - Start</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Mon, 21 Sep 2015 22:50:03 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=97629#p97629</guid>
		</item>
	</channel>
</rss>
