Вверх ↑
Разработчик
Ответов: 26151
Рейтинг: 2127
#1: 2011-05-24 13:26:20 ЛС | профиль | цитата
CriDos, схему сравнения в студию. В принципе, скорость можно увеличить, но тогда это наложит отпечаток на точночть написания поискового блока, там будут запрещены пробелы между операторами и запрещены отступы от начала строки -- функция Trim довольно ресурсоемкая
------------ Дoбавленo в 13.26:
Проверил, не сильно-то и отличается на один заход, но точно не в два раза



Add(MainForm,3757232,63,140)
{
Width=376
Height=390
Position=1
link(onCreate,9302163:doData,[])
}
Add(DoData,9302163,126,154)
{
link(onEventData,1474463:doEvent1,[])
link(Data,6625109:Text,[])
}
Add(BlockFind,10966976,406,322)
{
IncludeBlock=1
StartBlock="<yt:videoid>"
EndBlock="</yt:videoid>"
link(onSearch,6779765:doValue,[])
}
Add(BlockFind,13141924,406,371)
{
IncludeBlock=1
StartBlock="viewCount='"
EndBlock="'"
link(onSearch,3245193:doValue,[])
}
Add(Hub,12375461,301,315)
{
OutCount=6
link(onEvent1,15263793:doStart,[(335,321)(335,251)])
link(onEvent2,10966976:doSearch,[])
link(onEvent3,13141924:doSearch,[(377,335)(377,377)])
link(onEvent4,3543200:doSearch,[(367,342)(367,426)])
link(onEvent5,5379198:doSearch,[(356,349)(356,482)])
link(onEvent6,15263793:doStop,[(345,356)(345,258)])
}
Add(BlockFind,3543200,406,420)
{
StartBlock="<link"
EndBlock="/>"
link(onSearch,5675883:doSearch,[])
}
Add(BlockFind,5675883,455,420)
{
StartBlock="rel='edit'"
EndBlock="/>"
link(onSearch,13268008:doSearch,[])
}
Add(BlockFind,13268008,504,420)
{
IncludeBlock=1
StartBlock="href='"
EndBlock="'/>"
link(onSearch,2900181:doValue,[])
}
Add(BlockFind,5379198,406,476)
{
IncludeBlock=1
StartBlock="<media:keywords>"
EndBlock="</media:keywords>"
link(onSearch,8843358:doSearch,[])
}
Add(BlockFind,8843358,455,476)
{
IncludeBlock=1
StartBlock="("
EndBlock=")"
link(onSearch,397429:doValue,[])
}
Add(StrList,6625109,126,91)
{
FileName="probe.txt"
Strings=#15:HTTP/1.1 200 OK|24:X-GData-User-Country: UA|60:Content-Type: application/atom+xml; charset=UTF-8; type=feed|38:Expires: Mon, 23 May 2011 11:12:35 GMT|35:Date: Mon, 23 May 2011 11:12:35 GMT|64:Cache-Control: private, max-age=0, must-revalidate, no-transform|7:Vary: *|18:GData-Version: 2.0|34:ETag: W/"A0YBRH8-fyp7ImA9WhZVEUk."|44:Last-Modified: Mon, 23 May 2011 11:12:35 GMT|26:Transfer-Encoding: chunked|31:X-Content-Type-Options: nosniff|27:X-Frame-Options: SAMEORIGIN|31:X-XSS-Protection: 1; mode=block|11:Server: GSE|0:|4:307E|1418:<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:app='http://www.w3.org/2007/app' xmlns:media='http://search.yahoo.com/mrss/' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:gd='http://schemas.google.com/g/2005' xmlns:yt='http://gdata.youtube.com/schemas/2007' gd:etag='W/&quot;A0YBRH8-fyp7ImA9WhZVEUk.&quot;'><id>tag:youtube.com,2008:user:sxxxch:uploads</id><updated>2011-05-23T11:12:35.157Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><title>Uploads by sxxxch</title><logo>http://www.youtube.com/img/pic_youtubelogo_123x63.gif</logo><link rel='related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/sxxxch?client=sxxxch'/><link rel='alternate' type='text/html' href='http://www.youtube.com/profile_videos?user=sxxxch'/><link rel='http://schemas.google.com/g/2005#post' type='application/atom+xml' href='http://uploads.gdata.youtube.com/feeds/api/users/sxxxch/uploads?client=sxxxch'/><link rel='hub' href='http://pubsubhubbub.appspot.com'/><link rel='http://schemas.google.com/g/2005#resumable-create-media' type='application/atom+xml' href='http://uploads.gdata.youtube.com/resumable/feeds/api/users/sxxxch/uploads?client=sxxxch'/><link rel='http://gdata.youtube.com/schemas/2007#action.getUploadToken' type='application/atom+xml' href='http://gdata.youtube.com/|2840:action/GetUploadToken?client=sxxxch'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/sxxxch/uploads?client=sxxxch'/><link rel='http://schemas.google.com/g/2005#batch' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/sxxxch/uploads/batch?client=sxxxch'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/sxxxch/uploads?start-index=1&amp;max-results=25&amp;client=sxxxch'/><link rel='service' type='application/atomsvc+xml' href='http://gdata.youtube.com/feeds/api/users/sxxxch/uploads?alt=atom-service'/><author><name>sxxxch</name><uri>http://gdata.youtube.com/feeds/api/users/sxxxch</uri></author><generator version='2.0' uri='http://gdata.youtube.com/'>YouTube data API</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;A0UFQ347eCp7ImA9WhZVEU4.&quot;'><id>tag:youtube.com,2008:video:8qwdfTHt59A</id><published>2011-05-18T02:27:11.000Z</published><updated>2011-05-23T08:26:52.000Z</updated><app:edited>2011-05-23T08:26:52.000Z</app:edited><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Entertainment' label='Entertainment'/><category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='tegi'/><category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='(ghsae.avi)'/><title>nazvanie</title><content type='application/x-shockwave-flash' src='http://www.youtube.com/v/8qwdfTHt59A?f=user_uploads&amp;c=sxxxch&amp;d=AV6a0DbOE44QeXwUw8dq6TAO88HsQjpE1a8d1GxQnGDm&amp;app=youtube_gdata'/><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=8qwdfTHt59A&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/8qwdfTHt59A/related?client=sxxxch'/><link rel='http://gdata.youtube.com/schemas/2007#video.captionTracks' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/8qwdfTHt59A/captions?client=sxxxch' yt:hasEntries='false'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=8qwdfTHt59A'/><link rel='http://gdata.youtube.com/schemas/2007#insight.views' type='text/html' href='http://insight.youtube.com/video-analytics/csvreports?query=8qwdfTHt59A&amp;type=v&amp;starttime=1303603200000&amp;endtime=1306022400000&amp;user_starttime=1305417600000&amp;user_endtime=1306022400000&amp;region=world&amp;token=jilJkGUhJB8KxprSKcjD41zbrlp8MTMwNjE1MDk1NUAxMzA2MTQ5MTU1&amp;hl=en_U|1256:S'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/sxxxch/uploads/8qwdfTHt59A?client=sxxxch'/><link rel='edit' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/sxxxch/uploads/8qwdfTHt59A?client=sxxxch'/><author><name>sxxxch</name><uri>http://gdata.youtube.com/feeds/api/users/sxxxch</uri></author><yt:accessControl action='comment' permission='allowed'/><yt:accessControl action='commentVote' permission='allowed'/><yt:accessControl action='videoRespond' permission='moderated'/><yt:accessControl action='rate' permission='allowed'/><yt:accessControl action='embed' permission='allowed'/><yt:accessControl action='list' permission='allowed'/><yt:accessControl action='syndicate' permission='allowed'/><gd:comments><gd:feedLink href='http://gdata.youtube.com/feeds/api/videos/8qwdfTHt59A/comments?client=sxxxch' countHint='0'/></gd:comments><media:group><media:category label='Entertainment' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Entertainment</media:category><media:content url='http://www.youtube.com/v/8qwdfTHt59A?f=user_uploads&amp;c=sxxxch&amp;d=AV6a0DbOE44QeXwUw8dq6TAO88HsQjpE1a8d1GxQnGDm&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium|1420:='video' isDefault='true' expression='full' duration='18' yt:format='5'/><media:content url='rtsp://v8.cache2.c.youtube.com/ClMLENy73wIaSgnQ5-0xfR2s8hMYDSANFEIGc3h4eGNoSAZSDHVzZXJfdXBsb2Fkc3IhAV6a0DbOE44QeXwUw8dq6TAO88HsQjpE1a8d1GxQnGDmDA==/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='18' yt:format='1'/><media:content url='rtsp://v3.cache8.c.youtube.com/ClMLENy73wIaSgnQ5-0xfR2s8hMYESARFEIGc3h4eGNoSAZSDHVzZXJfdXBsb2Fkc3IhAV6a0DbOE44QeXwUw8dq6TAO88HsQjpE1a8d1GxQnGDmDA==/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='18' yt:format='6'/><media:credit role='uploader' scheme='urn:youtube'>sxxxch</media:credit><media:description type='plain'>opisanie</media:description><media:keywords>tegi, (ghsae.avi)</media:keywords><media:player url='http://www.youtube.com/watch?v=8qwdfTHt59A&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i.ytimg.com/vi/8qwdfTHt59A/default.jpg' height='90' width='120' time='00:00:09' yt:name='default'/><media:thumbnail url='http://i.ytimg.com/vi/8qwdfTHt59A/hqdefault.jpg' height='360' width='480' yt:name='hqdefault'/><media:thumbnail url='http://i.ytimg.com/vi/8qwdfTHt59A/1.jpg' height='90' width='120' time='00:00:04.500' yt:name='start'/><media:thumbnail url='http://i.ytimg.com/vi/8qwdfTHt59A/2.jpg' height='90' width='120' time='00:00:09' yt:name='middle'/><media:thumbnail url='http://i.ytimg.com/vi/8qwd|1420:fTHt59A/3.jpg' height='90' width='120' time='00:00:13.500' yt:name='end'/><media:title type='plain'>nazvanie</media:title><yt:duration seconds='18'/><yt:private/><yt:uploaded>2011-05-18T02:27:11.000Z</yt:uploaded><yt:videoid>8qwdfTHt59A</yt:videoid></media:group><yt:statistics favoriteCount='0' viewCount='4'/></entry><entry gd:etag='W/&quot;CkACSH47eCp7ImA9WhZVEUk.&quot;'><id>tag:youtube.com,2008:video:4-LRve8mg94</id><published>2011-05-18T02:27:07.000Z</published><updated>2011-05-23T08:52:49.000Z</updated><app:edited>2011-05-23T08:52:49.000Z</app:edited><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Entertainment' label='Entertainment'/><category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='hentai'/><category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='love'/><category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='xxx'/><category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='sex'/><category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='(aergg.avi)'/><title>hentai love xxx sex</title><content type='application/x-shockwave-flash' src='http://www.youtube.com/v/4-LRve8mg94?f=user_uploads&amp;c=sxxxch&amp;d=AV6a0DbOE44QeXwUw8dq6TAO88HsQjpE1a8d1GxQnGDm&amp;app=you|1256:tube_gdata'/><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=4-LRve8mg94&amp;feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/4-LRve8mg94/related?client=sxxxch'/><link rel='http://gdata.youtube.com/schemas/2007#video.captionTracks' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/4-LRve8mg94/captions?client=sxxxch' yt:hasEntries='false'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=4-LRve8mg94'/><link rel='http://gdata.youtube.com/schemas/2007#insight.views' type='text/html' href='http://insight.youtube.com/video-analytics/csvreports?query=4-LRve8mg94&amp;type=v&amp;starttime=1303603200000&amp;endtime=1306022400000&amp;user_starttime=1305417600000&amp;user_endtime=1306022400000&amp;region=world&amp;token=G876uUq2LeLXEKG7OImivMTfyPh8MTMwNjE1MDk1NUAxMzA2MTQ5MTU1&amp;hl=en_US'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/sxxxch/uploads/4-LRve8mg94?client=sxxxch'/><link rel='edit' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/sxxxch/|1420:uploads/4-LRve8mg94?client=sxxxch'/><author><name>sxxxch</name><uri>http://gdata.youtube.com/feeds/api/users/sxxxch</uri></author><yt:accessControl action='comment' permission='allowed'/><yt:accessControl action='commentVote' permission='allowed'/><yt:accessControl action='videoRespond' permission='moderated'/><yt:accessControl action='rate' permission='allowed'/><yt:accessControl action='embed' permission='allowed'/><yt:accessControl action='list' permission='allowed'/><yt:accessControl action='syndicate' permission='allowed'/><gd:comments><gd:feedLink href='http://gdata.youtube.com/feeds/api/videos/4-LRve8mg94/comments?client=sxxxch' countHint='0'/></gd:comments><media:group><media:category label='Entertainment' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Entertainment</media:category><media:content url='http://www.youtube.com/v/4-LRve8mg94?f=user_uploads&amp;c=sxxxch&amp;d=AV6a0DbOE44QeXwUw8dq6TAO88HsQjpE1a8d1GxQnGDm&amp;app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='38' yt:format='5'/><media:content url='rtsp://v4.cache6.c.youtube.com/ClMLENy73wIaSgnegybvvdHi4xMYDSANFEIGc3h4eGNoSAZSDHVzZXJfdXBsb2Fkc3IhAV6a0DbOE44QeXwUw8dq6TAO88HsQjpE1a8d1GxQnGDmDA==/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='38' yt:format='1'/><media:content url='rtsp://v4.cache8.c.youtube.com/ClMLENy73wIaS|1384:gnegybvvdHi4xMYESARFEIGc3h4eGNoSAZSDHVzZXJfdXBsb2Fkc3IhAV6a0DbOE44QeXwUw8dq6TAO88HsQjpE1a8d1GxQnGDmDA==/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='38' yt:format='6'/><media:credit role='uploader' scheme='urn:youtube'>sxxxch</media:credit><media:description type='plain'>hentai love xxx sex</media:description><media:keywords>hentai, love, xxx, sex, (aergg.avi)</media:keywords><media:player url='http://www.youtube.com/watch?v=4-LRve8mg94&amp;feature=youtube_gdata_player'/><media:thumbnail url='http://i.ytimg.com/vi/4-LRve8mg94/default.jpg' height='90' width='120' time='00:00:19' yt:name='default'/><media:thumbnail url='http://i.ytimg.com/vi/4-LRve8mg94/hqdefault.jpg' height='360' width='480' yt:name='hqdefault'/><media:thumbnail url='http://i.ytimg.com/vi/4-LRve8mg94/1.jpg' height='90' width='120' time='00:00:09.500' yt:name='start'/><media:thumbnail url='http://i.ytimg.com/vi/4-LRve8mg94/2.jpg' height='90' width='120' time='00:00:19' yt:name='middle'/><media:thumbnail url='http://i.ytimg.com/vi/4-LRve8mg94/3.jpg' height='90' width='120' time='00:00:28.500' yt:name='end'/><media:title type='plain'>hentai love xxx sex</media:title><yt:duration seconds='38'/><yt:private/><yt:uploaded>2011-05-18T02:27:07.000Z</yt:uploaded><yt:videoid>4-LRve8mg94</yt:videoid></media:group><yt:statistics favoriteCount='0' viewCount='2'/></entry></feed>|1:0|0:|
}
Add(FormatStr,8716441,406,161)
{
DataCount=4
Mask="%1;%2;%3;%4"
link(onFString,3885004:doAdd,[])
}
Add(StringTable,3885004,651,161)
{
Width=360
Height=156
Align=2
Columns=#3:Имя|5:Адрес|10:Просмотров|2:ID|
Redaction=1
Point(doSortDigit)
}
Add(MultiBlockFind,4094443,329,161)
{
TagList="{#start}\r\n <yt:videoid> {#exclude} </yt:videoid>\r\n{#end}\r\n\r\n{#start} \r\n viewCount=' {#exclude} '\r\n{#end}\r\n\r\n{#start} \r\n link {#include} /> {#next}\r\n rel='edit' {#include} /> {#next} \r\n href=' {#exclude} '\r\n{#end}\r\n\r\n{#start}\r\n <media:keywords> {#exclude} </media:keywords> {#next}\r\n ( {#exclude} )\r\n{#end} "
Point(onEnd)
link(onResult,8716441:doString,[])
link(onEnd,4968100:doStop,[(383,174)(383,97)])
}
Add(StringTable,261290,651,539)
{
Top=196
Width=360
Height=156
Align=4
Columns=#3:Имя|5:Адрес|10:Просмотров|2:ID|
Redaction=1
Point(doSortDigit)
}
Add(BlockFind,11017106,231,315)
{
IncludeBlock=1
StartBlock="<entry"
EndBlock="</entry>"
link(onSearch,12375461:doEvent1,[])
}
Add(Hub,1474463,175,154)
{
link(onEvent1,2689203:doSearch,[])
link(onEvent2,11017106:doSearch,[(205,167)(205,321)])
}
Add(Memory,6779765,588,322)
{
Default=String()
}
Add(Memory,3245193,581,371)
{
Default=String()
}
Add(FormatStr,7860064,567,539)
{
DataCount=4
Mask="%1;%2;%3;%4"
link(onFString,261290:doAdd,[])
link(Str1,397429:Value,[])
link(Str2,2900181:Value,[])
link(Str3,3245193:Value,[])
link(Str4,6779765:Value,[])
}
Add(Memory,2900181,574,420)
{
Default=String()
}
Add(Memory,397429,567,476)
{
Default=String()
link(onData,7860064:doString,[(611,482)(611,514)(555,514)(555,545)])
}
Add(BlockFind,2689203,217,154)
{
IncludeBlock=1
StartBlock="<entry"
EndBlock="</entry>"
link(onSearch,9852827:doEvent1,[])
}
Add(InfoTip,4220114,287,133)
{
Info=#3:New|
Width=344
Height=81
Margin=5
}
Add(InfoTip,6932778,287,294)
{
Info=#3:Old|
Width=344
Height=298
Margin=5
}
Add(TimeCounter,4968100,406,84)
{
Precision=1
link(onStop,3441977:doText,[])
}
Add(Label,2258932,70,238)
{
Left=10
Top=170
Width=29
Height=17
Caption="New:"
}
Add(Label,3441977,462,91)
{
Left=50
Top=170
Width=90
Caption=""
AutoSize=1
}
Add(Label,9282533,462,252)
{
Left=195
Top=170
Width=23
Height=17
Caption="Old:"
}
Add(Label,13278441,84,245)
{
Left=230
Top=170
Width=90
Caption=""
AutoSize=1
}
Add(TimeCounter,15263793,406,245)
{
Precision=1
link(onStop,9282533:doText,[])
}
Add(Hub,9852827,259,154)
{
link(onEvent1,4968100:doStart,[(314,160)(314,90)])
link(onEvent2,4094443:doMultiBlockFind,[])
}

карма: 22

0