<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Парсинг txt большого объёма]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=14632</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14632&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Парсинг txt большого объёма».]]></description>
		<lastBuildDate>Tue, 05 Mar 2019 15:23:39 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Парсинг txt большого объёма]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=132811#p132811</link>
			<description><![CDATA[<p><strong>ypppu</strong> проверка большого текстового документа, она же история коэффициентов на количество коэффициентов привышающих определенное значение.</p>]]></description>
			<author><![CDATA[null@example.com (romzes96)]]></author>
			<pubDate>Tue, 05 Mar 2019 15:23:39 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=132811#p132811</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Парсинг txt большого объёма]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=132810#p132810</link>
			<description><![CDATA[<div class="quotebox"><cite>romzes96 пишет:</cite><blockquote><p>Сегодня так сказать &quot;парсил&quot; чуть больше часа.<br />Может быть я вообще не правильно подошел к данной задаче?</p></blockquote></div><p> К какой задаче?</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Tue, 05 Mar 2019 15:05:53 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=132810#p132810</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Парсинг txt большого объёма]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=132809#p132809</link>
			<description><![CDATA[<div class="codebox"><pre><code>lowK := 0
bigK := 0

Loop, Read, 500к.txt
{
	if (A_LoopReadLine &lt; 2)
		lowK++
	else
		bigK++
}
msgbox, % &quot;Всего коэфов: &quot; bigK + lowK &quot;`nИз Них &quot; lowK &quot; меньше 2`nИз них &quot; bigK &quot; больше 2&quot;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Phoenixxx_Czar)]]></author>
			<pubDate>Tue, 05 Mar 2019 14:55:30 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=132809#p132809</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Парсинг txt большого объёма]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=132808#p132808</link>
			<description><![CDATA[<p>Здравствуйте не подскажите как можно оптимизировать данный скрипт?<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
SetBatchLines, -1
SetMouseDelay, -1
SetKeyDelay, -1
#MaxMem 999999999


FileRead, count_link, %A_ScriptDir%\500к.txt
Loop, parse, count_link, `n, `r
{
	If (A_LoopField != &quot;&quot;)
		Num++
}
While (%A_Index% &lt;= Num)
{
	FileReadLine, koef, %A_ScriptDir%\500к.txt, %A_Index%
	If (koef &lt; 2)
		lowK++
	If (koef &gt;= 2)
		bigK++
}

MsgBox, %Num% Всего коэфов`nИз них %lowK% меньше 2`nИз них %bigK% больше 2</code></pre></div></div></div><p>Проблема в том что это очень долго для файла в 500000 строк...<br />Сегодня так сказать &quot;парсил&quot; чуть больше часа.<br />Может быть я вообще не правильно подошел к данной задаче?</p>]]></description>
			<author><![CDATA[null@example.com (romzes96)]]></author>
			<pubDate>Tue, 05 Mar 2019 14:38:17 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=132808#p132808</guid>
		</item>
	</channel>
</rss>
